Clang's tautological-constant-out-of-range-compare warnings seem broken. It'll warn on enum values, even though they could have casted...
@taradinoc Because you may be doing it in an assertion. Ie., "assert that this enum is in range when I get it". That's extremely common.
-
-
@taradinoc Now all of those would have to be casted to integer types first. -
@cmuratori The compiler can choose the size of the enum to match the values, so that comparison may not be meaningful. - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.