Boost C++ Libraries: Ticket #13292: Using Boost.Asio's POSIX-specific features makes programs not compile https://svn.boost.org/trac10/ticket/13292 <p> When using ASIO I get the following error message upon trying to compile on POSIX: </p> <pre class="wiki">In file included from /usr/include/boost/asio/basic_socket_iostream.hpp:24:0, from /usr/include/boost/asio.hpp:29, from boost_bug.cpp:1: /usr/include/boost/asio/basic_socket_streambuf.hpp: In instantiation of ‘boost::asio::basic_socket_streambuf&lt;Protocol, StreamSocketService, Time, TimeTraits, TimerService&gt;* boost::asio::basic_socket_streambuf&lt;Protocol, StreamSocketService, Time, TimeTraits, TimerService&gt;::connect(T ...) [with T = {const char*}; Protocol = boost::asio::local::stream_protocol; StreamSocketService = boost::asio::stream_socket_service&lt;boost::asio::local::stream_protocol&gt;; Time = boost::posix_time::ptime; TimeTraits = boost::asio::time_traits&lt;boost::posix_time::ptime&gt;; TimerService = boost::asio::deadline_timer_service&lt;boost::posix_time::ptime, boost::asio::time_traits&lt;boost::posix_time::ptime&gt; &gt;]’: /usr/include/boost/asio/basic_socket_iostream.hpp:167:32: required from ‘boost::asio::basic_socket_iostream&lt;Protocol, StreamSocketService, Time, TimeTraits, TimerService&gt;::basic_socket_iostream(T ...) [with T = {const char*}; Protocol = boost::asio::local::stream_protocol; StreamSocketService = boost::asio::stream_socket_service&lt;boost::asio::local::stream_protocol&gt;; Time = boost::posix_time::ptime; TimeTraits = boost::asio::time_traits&lt;boost::posix_time::ptime&gt;; TimerService = boost::asio::deadline_timer_service&lt;boost::posix_time::ptime, boost::asio::time_traits&lt;boost::posix_time::ptime&gt; &gt;]’ boost_bug.cpp:4:74: required from here /usr/include/boost/asio/basic_socket_streambuf.hpp:204:41: error: no type named ‘resolver’ in ‘class boost::asio::local::stream_protocol’ typedef typename Protocol::resolver resolver_type; </pre><p> The following is an example source file that reproduces the bug: </p> <pre class="wiki">#include &lt;boost/asio.hpp&gt; int main() { boost::asio::local::stream_protocol::iostream stream("/tmp/test_sock"); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13292 Trac 1.4.3