I am trying to compile the tutorial for boost asio, specifically the daytime client (http://asio.sourceforge.net/asio-0.3.7/doc/tutorial/tutdaytime1.html). The following line generates a compile time error. Compiler is VC8.
Maybe I'm missing something but is this tutorial out of date? Because I also don't see any implementation of assign_error method which is also liberally used throughout the explanations on that page.
boost::asio::error error = boost::asio::error::host_not_found;
error C2440:
'initializing' : cannot convert from 'const boost::system::error_code' to 'boost::asio::error'
1> No constructor could take the source type, or constructor overload resolution was ambiguous