Opened 8 years ago
Last modified 8 years ago
#11183 new Bugs
boost::asio::async_read_until() not usable on (at least) VC++ 2013
Reported by: | Owned by: | chris_kohlhoff | |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.57.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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 &)'
Bug confirmed as invalid, close it.