|
Boost : |
From: David B. Held (dheld_at_[hidden])
Date: 2002-10-04 20:10:42
Ok, this is really frustrating. I'm trying trivial examples to understand
how lambda expressions work, and I can't get it to compile on bcc or
gcc. Here's what I'm doing:
#include <boost/mpl/lambda.hpp>
#include <boost/mpl/apply.hpp>
//--------------------------------------------------------------------------
-
namespace mpl = boost::mpl;
using mpl::_;
template <typename T>
struct ownership
{ };
int main(int argc, char* argv[])
{
typedef mpl::lambda<ownership<_> >::type f_;
mpl::apply<f_, int>::type t;
}
gcc reports that 'type' is not a member of apply<...>. bcc reports:
[C++ Error] apply.hpp(55): E2404 Dependent type qualifier
'ownership<_>' has no member type named 'apply'
I've tried bind<> too, with no luck. Help!
Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk