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

#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__
 -o test.o
test.cpp: In function `int main(int, int *)':
test.cpp:12: no match for `const
aceholder<1> > & ->* int A::*'
make: *** [test.exe] Error 1

Would appreciate any clues. ;-)


Boost list run by bdawes at, gregod at, cpdaniel at, john at