Marcel Raad wrote:
I get a lot of compile errors on MSVC12 when using boost::bind with more than two arguments of which one is a non-const reference and constructing a boost::function with the result:
#include
#include void a(int&, int, int);
int main(){ boost::function
f(boost::bind(&a, _1, _2, _3)); } results in error C2664: 'void (int &,int,int)': cannot convert argument 1 from 'const int' to 'int &'
Good one.
This regression is caused by the following change to boost::function:
https://github.com/boostorg/function/commit/27e9e1e372df203186a9e89e887a4e10...
You can verify that by adding
#include