Why is this C++ expression involving overloaded operators and implicit conversions ambiguous? – stackoverflow.com

operator bool breaks the use of operator< in the following example. Can anyone explain why bool is just as relevant in the if (a < 0) expression as the specific operator, an whether there is a ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why is this C++ expression involving overloaded operators and implicit conversions ambiguous? – stackoverflow.com"