This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12433] Finds wrong overload of std::operator<<
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Sep 2003 17:32:48 -0000
- Subject: [Bug c++/12433] Finds wrong overload of std::operator<<
- References: <20030927205755.12433.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12433
------- Additional Comments From gdr at integrable-solutions dot net 2003-09-28 17:32 -------
Subject: Re: Finds wrong overload of std::operator<<
"igodard at pacbell dot net" <gcc-bugzilla@gcc.gnu.org> writes:
| cout << "Bar:" << Bar << endl;
this will convert "Bar" to bool because there is no other match for
operator<<.
| cout << "*Bar:" << *Bar << endl;
Ditto.
| cout << "Foo:" << Foo << endl;
| cout << "*Foo:" << *Foo << endl;
Ditto.
-- Gaby