This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50710] ambiguity problem between bool() and string() operators, when used on a string that's a class member
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Oct 2011 01:06:11 +0000
- Subject: [Bug c++/50710] ambiguity problem between bool() and string() operators, when used on a string that's a class member
- Auto-submitted: auto-generated
- References: <bug-50710-4@http.gcc.gnu.org/bugzilla/>
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.