$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2006-05-08 23:15:15
Lucio Flores <dogboy_l_at_[hidden]> writes:
> I posted this question a few months ago, but I got pulled away to deal with
> more pressing work issues. So here it goes again:
>
> I'm trying to use lambda expressions to implement 'twice'. So I came up with
>
>
> typedef mpl::apply<_1, mpl::apply<_1, _2> > lambda_type;
>
> typedef lambda_type<boost::add_pointer<_1>, int> result_type;
Surely that doesn't compile(?) lambda_type is a type; you can't follow
it with a template argument list.
-- Dave Abrahams Boost Consulting www.boost-consulting.com