[Boost-bugs] [Boost C++ Libraries] #4196: Code does not compile when using boost::asio::local::stream_protocol::iostream

Subject: [Boost-bugs] [Boost C++ Libraries] #4196: Code does not compile when using boost::asio::local::stream_protocol::iostream
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-06 06:25:22


#4196: Code does not compile when using
boost::asio::local::stream_protocol::iostream
-------------------------------------------------------------------+--------
 Reporter: Hannes Brandstätter-Müller <hannes.mueller@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: asio
  Version: Boost 1.42.0 | Severity: Showstopper
 Keywords: |
-------------------------------------------------------------------+--------
 I found a reference to this problem on [http://old.nabble.com/Problems-
 with-boost%3a%3aasio%3a%3alocal%3a%3astream_protocol%3a%3aiostream-under-
 Boost-1.36.0-td19462107.html this page]. Unfortunately, there was no
 solution there to be found.

 I get the following errors when trying to use
 {{{
 asio::local::stream_protocol::iostream stream_;
 }}}

 initialization in the constructor of my class as:

 {{{
 myclass::myclass(const std::string& file) : stream_(file) {}
 }}}

 Errors:

 {{{
 /usr/local/include/boost/asio/basic_socket_streambuf.hpp: In member
 function ‘boost::asio::basic_socket_streambuf<Protocol,
 StreamSocketService>* boost::asio::basic_socket_streambuf<Protocol,
 StreamSocketService>::connect(T0) [with T0 = std::basic_string<char,
 std::char_traits<char>, std::allocator<char> >, Protocol =
 boost::asio::local::stream_protocol, StreamSocketService =
 boost::asio::stream_socket_service<boost::asio::local::stream_protocol>]’:
 /usr/local/include/boost/asio/basic_socket_iostream.hpp:114:
 instantiated from ‘boost::asio::basic_socket_iostream<Protocol,
 StreamSocketService>::basic_socket_iostream(T0) [with T0 =
 std::basic_string<char, std::char_traits<char>, std::allocator<char> >,
 Protocol = boost::asio::local::stream_protocol, StreamSocketService =
 boost::asio::stream_socket_service<boost::asio::local::stream_protocol>]’
 myclass.cpp:14: instantiated from here
 /usr/local/include/boost/asio/basic_socket_streambuf.hpp:139: error: no
 type named ‘resolver_query’ in ‘class boost::asio::local::stream_protocol’
 make: *** [myclass.o] Error 1
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4196>
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:03 UTC