diff --git a/CHANGELOG.md b/CHANGELOG.md index de7e2b0a..91ea2255 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 63: + +* Use std::to_string instead of lexical_cast + +-------------------------------------------------------------------------------- + Version 62: * Remove libssl-dev from a Travis matrix item diff --git a/example/http-client-ssl/http_client_ssl.cpp b/example/http-client-ssl/http_client_ssl.cpp index 65b089f3..3b3e378e 100644 --- a/example/http-client-ssl/http_client_ssl.cpp +++ b/example/http-client-ssl/http_client_ssl.cpp @@ -9,7 +9,6 @@ #include #include #include -#include #include #include @@ -62,7 +61,7 @@ int main() req.target("/"); req.version = 11; req.set(http::field::host, host + ":" + - boost::lexical_cast(sock.remote_endpoint().port())); + std::to_string(sock.remote_endpoint().port())); req.set(http::field::user_agent, "Beast"); req.prepare_payload(); diff --git a/example/http-client/http_client.cpp b/example/http-client/http_client.cpp index 9e0b50a9..28b889ab 100644 --- a/example/http-client/http_client.cpp +++ b/example/http-client/http_client.cpp @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -53,7 +52,7 @@ int main() req.target("/"); req.version = 11; req.set(http::field::host, host + ":" + - boost::lexical_cast(sock.remote_endpoint().port())); + std::to_string(sock.remote_endpoint().port())); req.set(http::field::user_agent, "Beast"); req.prepare_payload(); diff --git a/example/http-crawl/http_crawl.cpp b/example/http-crawl/http_crawl.cpp index 3d96626c..8cee781b 100644 --- a/example/http-crawl/http_crawl.cpp +++ b/example/http-crawl/http_crawl.cpp @@ -11,7 +11,6 @@ #include #include #include -#include #include #include @@ -80,8 +79,7 @@ main(int, char const*[]) req.version = 11; req.method(http::verb::get); req.target("/"); - req.set(http::field::host, host + std::string(":") + - boost::lexical_cast(ep.port())); + req.set(http::field::host, host + std::string(":") + std::to_string(ep.port())); req.set(http::field::user_agent, BEAST_VERSION_STRING); // Set the Connection: close field, this way the server will close