Boost logo

Boost :

Subject: Re: [boost] [mpl] is_lambda_expression bug?
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2013-02-08 15:45:05


On Fri, Feb 8, 2013 at 9:04 AM, James Hirschorn <james.hirschorn_at_[hidden]
> wrote:

> The compile-time assertion fails in the following program. I have tried
> with
> more than one version of boost including 1.53.
>
> Is it a bug? Shall I report it?
>
> --------------------------------------------------
>
> #include <boost/mpl/assert.hpp>
> #include <boost/mpl/lambda.hpp>
> #include <boost/mpl/plus.hpp>
>
> namespace mpl = boost::mpl;
>
> struct MetafunctionClass
> {
> template<typename T1, typename T2>
> struct apply
> {
> typedef typename mpl::plus<T1,T2>::type type;
> };
> };
>
> BOOST_MPL_ASSERT((mpl::is_lambda_expression<MetafunctionClass>));
>
> int main(int argc, char * argv[])
> {
> }
>

I can't find any documentation for is_lambda_expression...though I didn't
look very hard...is it part of the public API?

- Jeff


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