, чтобы преобразовать BOOST :: BEAST :: flat_buffer . />
Код: Выделить всё
boost::beast::flat_buffer buf;
// ...
std::string buf_data(boost::asio::buffers_begin(buf.data()), boost::asio::buffers_end(buf.data()));
buf_data = "new data";
// how to change boost::beast::flat_buffer buf;?
Подробнее здесь: https://stackoverflow.com/questions/796 ... lat-buffer
Мобильная версия