Use boost::lexical_cast instead of std::to_string

fix #176
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:13 -07:00
1 parent 2a50915322
commit aa8e7432c2
10 files changed
+24 -13

No files matched your search

@@ -11,6 +11,7 @@
#include <beast/core/placeholders.hpp>
#include <beast/core/streambuf.hpp>
#include <beast/websocket.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/optional.hpp>
#include <functional>
#include <iostream>
@@ -84,7 +85,7 @@ private:
fail(int id, error_code ec, std::string what)
{
if(log_)
std::cerr << "#" << std::to_string(id) << " " <<
std::cerr << "#" << boost::lexical_cast<std::string>(id) << " " <<
what << ": " << ec.message() << std::endl;
}