Boost logo

Boost :

Subject: Re: [boost] [MPL] Bug with default lambda expressions?
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2013-05-23 01:19:14


On Wed, May 22, 2013 at 5:16 AM, Larry Evans <cppljevans_at_[hidden]>wrote:

> On 05/21/13 18:04, Larry Evans wrote:
> > On 05/21/13 15:43, Louis Dionne wrote:
>
[...]

> >> template <typename S1, typename S2, typename Pred = is_same<_, _> >
> >> struct equal;
>
[...]

> template<
> typename BOOST_MPL_AUX_NA_PARAM(Sequence1)
> , typename BOOST_MPL_AUX_NA_PARAM(Sequence2)
> #ifdef LJE_USE_LAMBDA_PREDICATE_IS_SAME
> , typename Predicate = typename lambda<is_same<_,_> >::type
> #else
> , typename Predicate = is_same<_,_>
> #endif
> >
> struct equal
>
[...]

Quick note: might as well use quote2<is_same> rather than
lambda<is_same<_,_>>::type...at least, I think so, I've never actually used
mpl::_ myself.

- Jeff


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