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++/34696] Overloaded template losing type in invoking a superclass method?



------- Comment #1 from bangerth at dealii dot org  2008-01-07 17:34 -------
(In reply to comment #0)
>                 o << arg;

This line calls the global operator
  ostream operator<< (ostream, char*)
whereas this one

>                 std::ostringstream::operator<<(arg);

clearly needs a member function operator<<. The best one is the one with 
void* argument.

So not a bug.
W.


-- 

bangerth at dealii dot org changed:

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


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


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