[Boost-bugs] [Boost C++ Libraries] #5688: boost::asio::async_read_until with boost::regex compilation error

Subject: [Boost-bugs] [Boost C++ Libraries] #5688: boost::asio::async_read_until with boost::regex compilation error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-12 12:10:09


#5688: boost::asio::async_read_until with boost::regex compilation error
------------------------------+---------------------------------------------
 Reporter: monsta@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.47.0 | Severity: Regression
 Keywords: async_read_until |
------------------------------+---------------------------------------------
 This little test program fails to compile with Boost 1.47.
 I've been using Boost 1.44 previously, and Asio and Regex were getting
 along just fine.

 {{{
 #include <boost/asio/io_service.hpp>
 #include <boost/asio/ip/tcp.hpp>
 #include <boost/asio/read_until.hpp>
 #include <boost/asio/streambuf.hpp>
 #include <boost/regex.hpp>

 void handler(const boost::system::error_code& e, std::size_t size) {}

 int main() {
     boost::asio::io_service ios;
     boost::asio::ip::tcp::socket s(ios);
     boost::asio::streambuf b;
     boost::asio::async_read_until(s, b, boost::regex("i am just a regex"),
         handler);
 }
 }}}
 {{{
 /home/monsta/work/sandbox/include/boost/asio/impl/read_until.hpp: In
 function ‘void boost::asio::async_read_until(AsyncReadStream&,
 boost::asio::basic_streambuf<Allocator>&, const boost::regex&, const
 ReadHandler&) [with AsyncReadStream =
 boost::asio::basic_stream_socket<boost::asio::ip::tcp,
 boost::asio::stream_socket_service<boost::asio::ip::tcp> >, Allocator =
 std::allocator<char>, ReadHandler = void ()(const
 boost::system::error_code&, size_t)]’:
 ../../src/asio-regex-test.cpp:14: instantiated from here
 /home/monsta/work/sandbox/include/boost/asio/impl/read_until.hpp:880:
 error: no matching function for call to
 â€˜make_read_until_expr_op(boost::asio::basic_stream_socket<boost::asio::ip::tcp,
 boost::asio::stream_socket_service<boost::asio::ip::tcp> >&,
 boost::asio::basic_streambuf<std::allocator<char> >&, const
 boost::basic_regex<char, boost::regex_traits<char,
 boost::cpp_regex_traits<char> > >&, void (&)(const
 boost::system::error_code&, size_t))’
 }}}

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