Skip to content

Conversation

@dean0x7d
Copy link
Member

@dean0x7d dean0x7d commented Jul 5, 2017

ICC failed to compile and was reporting that try_direct_conversions() cannot be constexpr because handle is not a literal type (it is, ICC just doesn't know it). The fix removes constexpr from the function since it isn't strictly needed.

This commit also suppresses new false positive warnings which mostly appear in constexpr contexts (where the compiler knows conversions are safe). Suppressing all of these may seem heavy-handed, but these really are false positives -- other compilers have the same warnings enabled without any of the issues for compile-time constants.

ICC was reporting that `try_direct_conversions()` cannot be `constexpr`
because `handle` is not a literal type. The fix removes `constexpr`
from the function since it isn't strictly needed.

This commit also suppresses new false positive warnings which mostly
appear in constexpr contexts (where the compiler knows conversions are
safe).
@jagerman
Copy link
Member

jagerman commented Jul 5, 2017

LGTM. We've pretty much always taken the path of disabling false positive warnings rather than changing code to work around them, so it seems pretty reasonable to keep doing so for ICC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants