Boost logo

Boost Users :

From: Mynhard Rudolph (yg-boost-users_at_[hidden])
Date: 2002-09-18 05:51:07


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-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net