This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12433] Finds wrong overload of std::operator<<


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]