Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2004-05-03 11:14:00


"Brian McNamara" <lorgon_at_[hidden]> wrote

>On Mon, May 03, 2004 at 09:42:16AM -0400, Arkadiy Vertleyb wrote:
> >
> > On the other hand, since a lambda expression returns a
default-constructed
> > functor (does it? -- I am unable to verify it right now) the above
doesn't
> > make a lot of sence for Lambda... One can just write:
> >
> > BOOST_TYPEOF(_1 > 15 && _2 < 20) fun;
>
> I don't think so. I am pretty sure that
>
> _1 < 3.3
> and
> _1 < 4.4
>
> have the same _type_ (but they have different "double" _values_ encoded
> in the run-time structure when constructed).

Yes, thanks for correcting me. This makes one still want to use the
BOOST_TYPEOF_ALLOCATE macro in this case.

Arkadiy


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