beast icon indicating copy to clipboard operation
beast copied to clipboard

buffers_to_string doesn't work, won't compile program

Open michael-brennan2005 opened this issue 4 years ago • 2 comments
trafficstars

PLEASE DON'T FORGET TO "STAR" THIS REPOSITORY :)

If you rather keep your project secret, feel free to email the author at <[email protected]>; any private correspondence is treated as confidential.

When reporting a bug please include the following:

Version of Beast

313

Steps necessary to reproduce the problem

std::string CodekataConnection::SendMessageAndListen(std::string message) { beast::flat_buffer buffer; ws.write(net::buffer(message)); ws.read(buffer); return buffers_to_string(buffer); }

ws is a standard websocket, it is a class member of the CodekataConnection

All relevant compiler information

MSVC++ on Visual Studio 2019, using Vcpkg to manage all of my dependencies.

These are the errors I am getting: image

michael-brennan2005 avatar Sep 22 '21 04:09 michael-brennan2005

Try:

buffers_to_string(buffer.data())

madmongo1 avatar Sep 22 '21 05:09 madmongo1

This issue has been open for a while with no activity, has it been resolved?

stale[bot] avatar Jan 09 '22 03:01 stale[bot]