gcc/kcc difference

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Wed Dec 15 15:42:00 GMT 1999


> But then, there's Koenig lookup, and a contorted reading of its
> definition may lead one to believe that definitions of Unipolar in the
> global namespace should be considered because `int' (the type of the
> first argument of the function) is in the global namespace (is it?).

No. 3.4.2/2:

# If T is a fundamental type, its associated sets of namespaces and
# classes are both empty.

Only user-defined things have associated namespaces.

Regards,
Martin


More information about the Gcc mailing list