Boost logo

Boost :

Subject: Re: [boost] Removing Bind placeholders from the global namespace
From: Sohail Somani (sohail_at_[hidden])
Date: 2009-06-14 18:29:32


Steven Watanabe wrote:
> AMDG
>
> Sohail Somani wrote:
>> Though, thinking about it a bit further, if you were to annex the
>> boost::placeholders namespace for bind's placeholders, maybe the other
>> library authors would support what is in that namespace with their
>> libraries. <hand_waving>How hard can it be?</hand_waving> I guess only
>> they know.
>
> Given that boost::bind is also at the top level, I don't
> see a problem with putting bind's placeholders in boost::placeholders.
> It should only require a few template specializations to make
> Lambda and Phoenix recognize them. The only issue is
> that as Peter mentioned, _1 + _1 won't work.

Why doesn't bind support the other placeholders instead? As you have
indicated, they have more functionality.

-- 
Sohail Somani
http://uint32t.blogspot.com

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