Boost logo

Boost :

From: Mynhard Rudolph (mynhard_at_[hidden])
Date: 2002-09-18 07:19:26


Hi all

Does the lambda library compile under mingw with gcc 2.95.2?
I'm a newbie and I can't figure out what's wrong with the following test
example:

#include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.hpp>
using namespace boost;
using namespace boost::lambda;

struct A { int d; };

int main (int argc, int argv[])
{
    A* a = new A();
    int b = (a ->* &A::d);
    int c = (_1 ->* &A::d)(a);
    return c - b;
}

g++ test.cpp -Wall -Ix:/boost_1_28_0/ -D__PROCESSOR_X86__
-D__WIN32__
-D__GCC__
 -o test.o
test.cpp: In function `int main(int, int *)':
test.cpp:12: no match for `const
boost::lambda::lambda_functor<boost::lambda::pl
aceholder<1> > & ->* int A::*'
make: *** [test.exe] Error 1

Would appreciate any clues. ;-)

Mynhard


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