Subject: [Boost-bugs] [Boost C++ Libraries] #3887: [patch] boost::asio fails to compile with SunStudio 12.1 on Solaris 10
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-01 17:10:41
#3887: [patch] boost::asio fails to compile with SunStudio 12.1 on Solaris 10
----------------------------------------------+-----------------------------
Reporter: John Keeping <john@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: asio
Version: Boost Development Trunk | Severity: Problem
Keywords: |
----------------------------------------------+-----------------------------
The boost::asio examples fail to compile with Sun Studio with the
following error:
"../../../../../boost/bind/bind.hpp", line 392: Error: Could not find a
match for boost::_mfi::mf2<void, http::server3::connection, const
boost::system::error_code&,
unsigned>::operator()(boost::shared_ptr<http::server3::connection>,
boost::asio::error::basic_errors, int) needed in
boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server3::connection>>,
boost::arg<1>, boost::arg<2>>::operator()<boost::_mfi::mf2<void,
http::server3::connection, const boost::system::error_code&, unsigned>,
boost::_bi::list2<boost::asio::error::basic_errors&,
int&>>(boost::_bi::type<void>, boost::_mfi::mf2<void,
http::server3::connection, const boost::system::error_code&, unsigned>&,
boost::_bi::list2<boost::asio::error::basic_errors&, int&>&, int).
This seems to be because the compiler doesn't perform the implicit
conversion from boost::asio::error::basic_errors to
boost::system::error_code. The attached patch makes this conversion
explicit where errors are passed to handlers (I think I found all of the
relevant places, I certainly fixed enough to run the HTTP examples).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3887> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC