
16 Aug
2004
16 Aug
'04
4:06 p.m.
| Thorsten Ottosen wrote: | > namespace A | > { | > template< typename T > | > void f( const T& x ) | > { | > detail::adl_f( x ); | > } | > | > // this is bad!! | > struct C {}; | | I assume you have control over namespace A, thus you can add: | | void f( const C& x ) | { | detail::f( x ); | } | | and the problem is gone. Is this a feasible solution for you? Not really since A would be namespace boost. I tried the stuff out with the range library, but it would affect all Ranges in boost, ie, tokenizer, sub_range, iterator_range and more. br Thorsten