|
Boost : |
Subject: Re: [boost] Boost 1_58_0_b1_rc2 is available for testing
From: Marcel Raad (raad_at_[hidden])
Date: 2015-03-14 16:59:12
Marshall Clow <mclow.lists <at> gmail.com>
writes:
> As always, the release managers would
> appreciate it if you download
> the candidate of your choice and give
> building it a try. Please report
> both success and failure, and anything
> else that is noteworthy.
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 <boost/bind.hpp>
#include <boost/function.hpp>
void a(int&, int, int);
int main(){
boost::function<void(int&, int, int)>
f(boost::bind(&a, _1, _2, _3));
}
results in
error C2664: 'void (int &,int,int)':
cannot convert argument 1 from 'const int'
to 'int &'
There are no compile errors with only one
or two arguments of which one is a
reference, and "auto f = boost::bind(...)"
compiles too.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk