Boost logo

Boost :

Subject: Re: [boost] Removing Bind placeholders from the global namespace
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-06-14 15:24:01


Sohail Somani:
> Peter Dimov wrote:
>> Sohail Somani:
>>> Anyway, isn't boost::placeholders too presumptuous?
>>
>> std::bind's placeholders are defined in namespace std::placeholders.
>
> Those placeholders are really limited and as far as I can tell it would
> be tough to make them the foundation of anything except bind-like stuff.
>
> If you were to have (say) phoenix placeholders in boost::placeholders,
> you could still implement bind but the rest of the libraries could use
> the extra functionality.

That is all very well but doesn't make it quite clear to me what do you
suggest. Not move bind's placeholders and leave them global? Move them to a
namespace other than boost::placeholders? Something else entirely?


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