Re: [boost] [Lambda] Handling Bind/Lambda name clashes.

On 25.05.2011 15:49, Eric Niebler wrote:
(fixing attribution...)
On 5/23/2011 11:42 PM, Robert Jones wrote:
On Thu, Apr 7, 2011 at 3:01 PM, Steven Watanabe wrote:
At some point in time, Eric Niebler wrote:
And what is wrong with leaving bind in the boost namespace as I was suggesting and define boost::function like this:
namespace boost { namespace function_adl_block { template<class Sig> struct function {...}; } using function_adl_block::function; }
Now the "boost" namespace is no longer associated with boost::function, and boost::bind won't be found by ADL.
It's probably a good general policy to move most/all types in Boost into ADL-blocking namespaces like above, except those for which there is reason to keep boost as an associated namespace.
cool technique (for building more modular software / libs)!
participants (1)
-
Max Sobolev