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]

Re: c++/8827: operator<< within namespace shadows all operator<<'s in global namespace


Synopsis: operator<< within namespace shadows all operator<<'s in global namespace

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Dec  5 11:57:05 2002
State-Changed-Why:
    This is not a bug, but how Koenig lookup works. If there
    is nothing in the present namespace, then we look into
    the namespaces of the arguments of the operator, which
    triggers the message.
    
    There are a number of similar reports in the database.
    
    If you know which operator you want to call, then qualify
    it with the name of the namespace. 
    
    Regards
      Wolfgang

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8827


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