Hacker News new | ask | show | jobs
by inetknght 514 days ago
A well-configured C++ compiler will error-out on such a silent conversion.
1 comments

The C++ compiler is required to perform this silent conversion according to the standard: https://en.cppreference.com/w/cpp/language/implicit_conversi...