Boost logo

Boost :

Subject: Re: [boost] [placeholders]
From: David Abrahams (dave_at_[hidden])
Date: 2010-07-28 23:06:53


At Wed, 28 Jul 2010 17:02:34 -0700,
Jeremy Maitin-Shepard wrote:
>
> On 07/28/2010 05:17 AM, David Abrahams wrote:
> > At Wed, 28 Jul 2010 09:05:07 +0800,
> > Joel de Guzman wrote:
> >>
> >> Yes, it is possible. That is what we are trying to solve with the
> >> Phoenix-3 project: unification of all placeholders.
> >
> > Not quite possible since MPL placeholders (at least in C++03) have to
> > be types rather than objects :-)
>
> Out of curiosity, how might it be possible with C++1x if that is what
> you are referring to?

decltype makes it possible to build a much more runtime-ey MPL—it
would look quite different though—where the placeholder objects could
be useful.

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