18 Dec
2018
18 Dec
'18
12:41 a.m.
AMDG On 12/15/2018 09:19 PM, hh h via Boost wrote:
boost::asio::streambuf sb; char *raw = sb;
error: cannot convert ‘boost::asio::streambuf {aka boost::asio::basic_streambuf<>}’ to ‘char*’ in initialization
I've checked the boost::asio::streambuf reference, but could not find anything to fix it, appreciate any clues.
asio::streambuf doesn't necessarily store contiguous data, so this can't work as is. The closest approximation to what you're asking for is: https://www.boost.org/doc/html/boost_asio/reference/basic_streambuf/data.htm... In Christ, Steven Watanabe