|
|
|
|
|
by BoorishBears
1799 days ago
|
|
Ah yes, of course the goalpost was "you need to customize your settings to catch it" above. Now that the default in the most beginner friendly of IDEs catches it, the goalpost is "my pet source of customization designed with C++98 in mind doesn't catch this" Of course, even your pet source of customization caught up:
https://developers.redhat.com/blog/2021/04/06/get-started-wi... |
|
The goalpost, since you're insistent on being explicit about it, was whether a C/C++ compiler "with reasonable flags" will catch the implicit wrap. GCC is a very popular compiler, and to be honest, I'm still not sure how to get it to warn on the above code, if doing so is possible.
Edit: Just read the rest of the thread, it's -Wconversion, which I suppose makes sense. Ignore me, point taken.