Boost logo

Boost Users :

Subject: [Boost-users] compiling error from code using boost::bind code in Vs2010
From: Miguel Carvajal (macarvajal_at_[hidden])
Date: 2013-02-19 19:27:48


hello,
actually i am using boost 1.48 on vs2010 and the following code does not
compile on boost

#include<boost/bind.hpp>
#include<boost/function.hpp>

using namespace boost;

class A
{

        public:
        void evaluate(function<VectorClass(VectorClass,double)> f)
};

class B
{

A a;
public;

        VectorClass f(VectorClass,double);
        
        void test()
        {
                a.evaluate(bind(f,this,_1,_2));
        }
};

Any help?


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