Boost logo

Boost Users :

From: David B. Held (dheld_at_[hidden])
Date: 2002-10-02 14:14:29


----- Original Message -----
From: "Jeff Faust" <jeff_at_[hidden]>
To: <Boost-Users_at_[hidden]>
Sent: Wednesday, October 02, 2002 11:32 AM
Subject: [Boost-Users] MPL?

> [...]
> Can anybody explain in English what the following does?

I believe that Aleksey posted the runtime pseudo-equivalent.

> Posted by David Abrahams on boost developers list:
> > 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::_> >

[Aleksey, on 9/27]
// "ideal" version, for comparison purposes:
// is_reference_to_class( add_reference(_) )
// && !is_reference_to_args( add_reference(_) )

I can't say for sure what the code does myself, but if I could venture
a guess, I would say that it's a condition for something else (maybe
an iterative algorithm over a type container?) that checks to see if
an argument is a reference type of various sorts.

Basically, if you don't understand it, in this case, you probably don't
need it. ;) I know I don't!

Dave


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net