
13 Aug
2004
13 Aug
'04
4:26 p.m.
"Daniel Frey" <daniel.frey@aixigo.de> wrote in message news:cfhteq$piv$1@sea.gmane.org... |Hm, good point. The only "solution" I could come up with is shown below, |but I don't know how portable/robust it is. | | template< typename T > | internal f( const T& x ) | { | if( sizeof( f(x),internal() ) == sizeof( char ) ) { | // Non-ADL-implementation | std::cout << 1 << std::endl; | } | else { | // ADL-forwarder | f( x ); | } | return internal(); | } why do you return an internal here? I mean, weed want to return f(x). br Thorsten