Closed jrudess closed 3 months ago
Read through the code in ArrayMethods.cpp and it looks like this is intentional behavior (i.e. getEffectiveWidth returns 1).
Yeah, a warning here seems to serve no purpose but to annoy people, since the result is essentially Boolean.
I was expecting -Wint-bool-conv to flag a warning for this example. LRM section is 7.9.3. All the other built-in methods that return int type do appear to be flagged by the warning.