Comment by Dylan16807
3 years ago
It's syntactically and functionally correct, so despite the error messages I think 'valid' is a better label.
> You could build a C++ compiler with a flag to warn, rather than error, on encountering implicit conversions that are forbidden by the C++ standard. The language the compiler is accepting would then no longer be standard C++, but a superset. (Same for all compiler-specific extensions of course.)
The way I see it, these errors are already on par with C++ warnings. C++ won't stop you if you make a pointer null or use the wrong string as a map key.
No comments yet
Contribute on Hacker News ↗