[Patch] Qualify with std:: two files
Gabriel Dos Reis
Fri Jul 4 07:56:00 GMT 2003
Martin Sebor <firstname.lastname@example.org> writes:
| Paolo Carlini wrote:
| > Hi,
| > 2003-07-03 Paolo Carlini <email@example.com>
| > * include/bits/stl_function.h: Fully qualify standard
| > functions with std::, thus avoiding Koenig lookup.
| Just an observation: the patch also qualifies a whole bunch of
| types (such as unary_negate) in addition to functions. That's
| not really necessary because Koenig lookup finds only functions.
Well, that is not a clear issue (as you probably remember), see
I would say that qualifiying types are safe. The only place where
there is no much debate is for template-id: ADL is not performed for
template-ids. I suggest Paolo leaves in the qualification on types.
(In fact, GCC does find type-names when perform ADL).
More information about the Libstdc++