Use boost::lexical_cast instead of std::to_string

fix #176
This commit is contained in:
Vinnie Falco
2017-07-20 08:12:13 -07:00
parent 2a50915322
commit aa8e7432c2
10 changed files with 24 additions and 13 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
#include <beast/http/basic_headers.hpp>
#include <beast/unit_test/suite.hpp>
#include <boost/lexical_cast.hpp>
namespace beast {
namespace http {
@@ -27,7 +28,7 @@ public:
fill(std::size_t n, basic_headers<Allocator>& h)
{
for(std::size_t i = 1; i<= n; ++i)
h.insert(std::to_string(i), i);
h.insert(boost::lexical_cast<std::string>(i), i);
}
template<class U, class V>