From 2963a0a47784a4cc7640719a8323d570c742181d Mon Sep 17 00:00:00 2001 From: ipknHama Date: Sat, 2 Aug 2014 06:30:02 +0900 Subject: replace lexical_cast to std::to_string --- http_connection.h | 4 +--- 1 file changed, 1 insertion(+), 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 -#include #include -#include #include #include #include @@ -162,7 +160,7 @@ namespace crow if (!has_content_length) { - content_length_ = boost::lexical_cast(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()); -- cgit v1.2.3-54-g00ecf