Subject: Re: [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-19 12:43:49
#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
Resolution: | Keywords: async_read_until
-------------------------------+--------------------------------------------
Comment (by pexu@â¦):
I hit the same problem.
I believe that the error locates at asio/impl/read_until.hpp:859 where
{{{typename RegEx}}} template parameter is declared but not used as the
the member function definition says `{{{const boost::regex& expr}}}'.
I guess the it should say `{{{const RegEx & expr}}}' etc.
An excerpt from asio/impl/read_until.hpp:859:
{{{
template <typename AsyncReadStream, typename Allocator,
typename RegEx, typename ReadHandler>
inline read_until_expr_op<AsyncReadStream, Allocator, RegEx,
ReadHandler>
make_read_until_expr_op(AsyncReadStream& s,
boost::asio::basic_streambuf<Allocator>& b,
const boost::regex& expr, ReadHandler handler)
{
return read_until_expr_op<AsyncReadStream, Allocator, RegEx,
ReadHandler>(
s, b, expr, handler);
}
}}}
If I'm missing something deeper here, the documentation should be perhaps
updated to reflect changes (didn't spot anything related to
{{{async_read_until}}}).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5688#comment:1> 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:07 UTC