[Bug c++/29618] argument dependent lookup: what about built-in types?

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 27 22:47:00 GMT 2006



------- Comment #2 from bangerth at dealii dot org  2006-10-27 22:47 -------
Built-in types are not associated with any namespace. ADL therefore doesn't
apply to them -- name lookup proceeds from the present scope outward and
stops once a suitable name is found. This results in you getting all the
overloaded versions of the functions inside the boost namespace, because
this is the first namespace where the name is found. It never gets to the
global scope.

W.


-- 

bangerth at dealii dot org changed:

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


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



More information about the Gcc-bugs mailing list