
3 Dec
2005
3 Dec
'05
10:42 p.m.
Eric Niebler wrote:
Templates don't "foil lookup in the global namespace." They merely require that the overload has been seen already. I have no problem requiring users of broken compilers to put the overload where BOOST_FOREACH can find it. Users of non-broken compilers can put the overload in an associated namespace and be happy.
That's what I do. Non-ADL compilers usually don't have two-phase lookup, so it balances out.