Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-08-16 11:06:34


| 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk