
26 Apr
2010
26 Apr
'10
5:04 p.m.
{ //compile error because of the placeholder boost::function<void(void)> fun = boost::bind(&transfor_file_push::write_file, this, boost::asio::placeholders::error, conn); }
You have an error because the function signature you have indicated with boost::function is void yet you are binding two parameters. You probably want something like: boost::function< void<boost::system::error_code&, connection> fun HTH - michael -- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com