[Bug c++/50710] ambiguity problem between bool() and string() operators, when used on a string that's a class member

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 13 01:06:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50710

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-13 01:06:11 UTC ---
The error message is pretty clear, isn't it? This is conforming behavior, there
is nothing to fix in the compiler. Maybe, I'm guessing, you want to change your
code to have one of the two operators explicit, but that is a new feature in
C++11, you have to compile with -std=gnu++0x.



More information about the Gcc-bugs mailing list