Hello,
I am working currently with version RCF 2.2.0.0. An Error occured When building the Callback connection example with VS2015.
Callback connection Example:
http://www.deltavsoft.com/doc/rcf_user_ ... onnections
Error message:
boost\boost\bind\bind.hpp(315): error C2664: 'void (RCF::RcfSessionPtr,RCF::ClientTransportAutoPtr)': cannot convert argument 2 from 'const RCF::ClientTransportAutoPtr' to 'RCF::ClientTransportAutoPtr'
Boost Version:1.59.0
Can you help me? Thank you!
Build error: Callback connection example.
Re: Build error: Callback connection example.
Hi there,
I was able to reproduce this compiler error with boost 1.59, but not with boost 1.60... So one option is to upgrade to a newer Boost version.
Alternatively you can use standard C++ binding instead of Boost Bind, by changing this code:
, to this:
I was able to reproduce this compiler error with boost 1.59, but not with boost 1.60... So one option is to upgrade to a newer Boost version.
Alternatively you can use standard C++ binding instead of Boost Bind, by changing this code:
Code: Select all
setOnCallbackConnectionCreated(
boost::bind(&onCallbackConnectionCreated, _1, _2));
Code: Select all
#include <functional>
// ...
using std::placeholders::_1;
using std::placeholders::_2;
server.setOnCallbackConnectionCreated(
std::bind(&onCallbackConnectionCreated, _1, _2));
Re: Build error: Callback connection example.
Problem solved! Thank you very much!