make_printable replaces buffers rename (API Change):

* The function buffers is deprecated, use the new
  function make_printable as the replacement.

Actions Required:

* Replace call sites to use make_printable instead of buffers,
  and also include make_printable.hpp instead of ostream.hpp.
This commit is contained in:
Vinnie Falco
2018-12-16 14:36:17 -08:00
parent 991bae8486
commit 0006ab3b2b
16 changed files with 230 additions and 92 deletions

View File

@@ -77,8 +77,8 @@ int main(int argc, char** argv)
// If we get here then the connection is closed gracefully
// The buffers() function helps print a ConstBufferSequence
std::cout << beast::buffers(buffer.data()) << std::endl;
// The make_printable() function helps print a ConstBufferSequence
std::cout << beast::make_printable(buffer.data()) << std::endl;
}
catch(std::exception const& e)
{