Boost logo

Boost :

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


Eric Niebler wrote:
> Sohail Somani wrote:
>>
>> Anyway, isn't boost::placeholders too presumptuous? It's not like any of
>> the other libraries that use placeholders will be using these
>> placholders. Unless they are! That would be sweet.
>
> Agreed. Boost.Phoenix will have placeholders named _1, _2, etc. With
> some thought, we might be able to define these placeholders such that
> they can be shared across Bind, Phoenix, Spirit (Qi/Karma/Lex),
> xpressive, etc., and squish this placeholder issue for good. Making them
> Proto terminals would be a no-brainer except for the portability issues
> to ancient compilers. But now that we're breaking back-compat, it might
> be time to reconsider the Bind placeholder portability hacks.
>
> Anyway, sign me up for helping out with this one. I'd like to see a
> unified set of placeholders.

Sounds good to me. Seems all those libraries are going towards proto
anyway. I bet you could do it all in a weekend with your eyes closed :-)

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