Boost C++ Libraries: Ticket #3887: [patch] boost::asio fails to compile with SunStudio 12.1 on Solaris 10 https://svn.boost.org/trac10/ticket/3887 <p> The boost::asio examples fail to compile with Sun Studio with the following error: </p> <p> "../../../../../boost/bind/bind.hpp", line 392: Error: Could not find a match for boost::_mfi::mf2&lt;void, http::server3::connection, const boost::system::error_code&amp;, unsigned&gt;::operator()(boost::shared_ptr&lt;http::server3::connection&gt;, boost::asio::error::basic_errors, int) needed in boost::_bi::list3&lt;boost::_bi::value&lt;boost::shared_ptr&lt;http::server3::connection&gt;&gt;, boost::arg&lt;1&gt;, boost::arg&lt;2&gt;&gt;::operator()&lt;boost::_mfi::mf2&lt;void, http::server3::connection, const boost::system::error_code&amp;, unsigned&gt;, boost::_bi::list2&lt;boost::asio::error::basic_errors&amp;, int&amp;&gt;&gt;(boost::_bi::type&lt;void&gt;, boost::_mfi::mf2&lt;void, http::server3::connection, const boost::system::error_code&amp;, unsigned&gt;&amp;, boost::_bi::list2&lt;boost::asio::error::basic_errors&amp;, int&amp;&gt;&amp;, int). </p> <p> 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). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3887 Trac 1.4.3 John Keeping <john@…> Mon, 01 Feb 2010 17:11:05 GMT attachment set https://svn.boost.org/trac10/ticket/3887 https://svn.boost.org/trac10/ticket/3887 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-asio-sunstudio.patch</span> </li> </ul> Ticket chris_kohlhoff Thu, 18 Mar 2010 01:39:43 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3887#comment:1 https://svn.boost.org/trac10/ticket/3887#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Major changes just committed to the release branch, in changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/60680" title="Merge reworked implementation from trunk. ">[60680]</a>, mean that the patch is no longer relevant. However, as part of the changes all implicit error_code conversions have been removed. Please reopen and attach a new patch if problems persist. </p> Ticket