Boost logo

Boost :

Subject: Re: [boost] Removing Bind placeholders from the global namespace
From: David Bergman (David.Bergman_at_[hidden])
Date: 2009-06-14 18:35:23


On Jun 14, 2009, at 6:29 PM, Sohail Somani wrote:

> 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.

That would not create one canonical placeholder (type)

/David


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