|
Boost : |
Subject: Re: [boost] boost::bind C2664 error with two non-const references
From: Peter Dimov (lists_at_[hidden])
Date: 2015-05-22 10:25:34
Nicolas FRANCOIS wrote:
> Does BOOST_NO_CXX11_RVALUE_REFERENCES is defined ?
No. This is what I'm compiling:
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <vector>
#ifdef BOOST_NO_CXX11_RVALUE_REFERENCES
#error
#endif
struct A {
void f(int&, std::vector<int*>&);
};
int main(){
A a;
auto f = boost::bind(&A::f, &a, _1, _2);
}
It compiles and the linker complains that A::f hasn't been defined.
Could you post the exact example that doesn't compile for you?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk