Boost logo

Boost Users :

From: Matt Gruenke (mgruenke_at_[hidden])
Date: 2007-09-27 20:08:26


I believe this is one of the areas that changed in the Boost fork of
ASIO, which it sounds like you might be using. I recommend trying this
documentation, instead:

    http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/

Matt

console shark wrote:
> 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; <http://asio.sourceforge.net/asio-0.3.7/doc/reference/a00135.html>
>
> 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
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net