diff options
author | ipknHama <ipknhama@gmail.com> | 2014-08-02 06:30:02 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-08-02 22:32:49 +0900 |
commit | 2963a0a47784a4cc7640719a8323d570c742181d (patch) | |
tree | 8c7eab64ba42e44dde62b26548574383df24fc54 | |
parent | 2e8f9f383d3ebc78fb2cb8ad37ad855ac28d11dd (diff) | |
download | crow-2963a0a47784a4cc7640719a8323d570c742181d.tar.gz crow-2963a0a47784a4cc7640719a8323d570c742181d.zip |
replace lexical_cast to std::to_string
-rw-r--r-- | http_connection.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/http_connection.h b/http_connection.h index fca9c22..27aa5cb 100644 --- a/http_connection.h +++ b/http_connection.h @@ -1,8 +1,6 @@ #pragma once #include <boost/asio.hpp> -#include <boost/asio.hpp> #include <boost/algorithm/string/predicate.hpp> -#include <boost/lexical_cast.hpp> #include <atomic> #include <chrono> #include <array> @@ -162,7 +160,7 @@ namespace crow if (!has_content_length) { - content_length_ = boost::lexical_cast<std::string>(res.body.size()); + content_length_ = std::to_string(res.body.size()); static std::string content_length_tag = "Content-Length: "; buffers_.emplace_back(content_length_tag.data(), content_length_tag.size()); buffers_.emplace_back(content_length_.data(), content_length_.size()); |