Boost logo

Boost :

Subject: Re: [boost] Removing Bind placeholders from the global namespace
From: Eric Niebler (eric_at_[hidden])
Date: 2009-06-13 22:09:38


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.

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

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