
21 Jan
2005
21 Jan
'05
8:06 a.m.
Did you tried a test with operator<<? This is primary target area for ADL, isn't it?
Here an example that shows my problem: template<typename T> struct abc{}; namespace foobar{ struct A {}; void operator<<( abc<A> const&, char) {} } void test() { abc<foobar::A> t; t << '0'; } This code compiles by most compilers (including online Cameau), but Borland fails it. Gennadiy