From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2002-09-27 02:50:38
Mattias Flodin wrote:
> On Thu, Sep 26, 2002 at 08:03:30PM -0400, David Abrahams wrote:
> > Have I mentioned recently how totally cool MPL's lambda facility is?
> > I can't believe I can do things like this, even with MSVC6.
> > It makes my metaprograms SO much easier to manage!
> > mpl::logical_and<
> > is_reference_to_class<add_reference<mpl::_> >
> > , mpl::logical_not<
> > is_reference_to_args<add_reference<mpl::_> >
> > >
> > >
> Yes, way cool, but with a syntax that could scare a full-grown man. :)
You missed the point - it's exactly the syntax that is totally cool :). Let
me try again:
is_reference_to_class< add_reference<_> >
, not_< is_reference_to_args< add_reference<_> > >
// "ideal" version, for comparison purposes:
// is_reference_to_class( add_reference(_) )
// && !is_reference_to_args( add_reference(_) )
Now that's cool, isn't it? :)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk