[Boost-bugs] [Boost C++ Libraries] #11184: boost::asio::async_read_until() not usable on (at least) VC++ 2013

Subject: [Boost-bugs] [Boost C++ Libraries] #11184: boost::asio::async_read_until() not usable on (at least) VC++ 2013
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-12 00:05:35


#11184: boost::asio::async_read_until() not usable on (at least) VC++ 2013
-----------------------+------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.57.0
 Severity: Problem | Keywords:
-----------------------+------------------------------
 parameter 2 of boost::asio::async_read_until is a
 boost::asio::basic_streambuf<Allocator>& - examples even show that you can
 declare a boost::asio::streambuf lvalue and pass it in.

 However, doing so and attempting to compile results in the following
 error:

 \boost\boost\asio\detail\buffer_sequence_adapter.hpp(111): error C2664:
 'boost::asio::const_buffer::const_buffer(const boost::asio::const_buffer
 &)' : cannot convert argument 1 from 'const char' to 'const
 boost::asio::mutable_buffer &'
 1> Reason: cannot convert from 'const char' to 'const
 boost::asio::mutable_buffer'
 1> No constructor could take the source type, or constructor
 overload resolution was ambiguous
 1> \boost\asio\detail\buffer_sequence_adapter.hpp(104) : while
 compiling class template member function
 'boost::asio::detail::buffer_sequence_adapter<boost::asio::const_buffer,ConstBufferSequence>::buffer_sequence_adapter(const
 Buffers &)'

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