|
13 | 13 | #include <cstdint>
|
14 | 14 | #include <boost/algorithm/string/compare.hpp>
|
15 | 15 | #include <boost/concept/requires.hpp>
|
16 |
| -#include <boost/lexical_cast.hpp> |
17 | 16 | #include <boost/network/constants.hpp>
|
18 | 17 | #include <boost/network/message/wrappers/body.hpp>
|
19 | 18 | #include <boost/network/protocol/http/message/header/name.hpp>
|
@@ -87,10 +86,8 @@ OutputIterator linearize(Request const& request,
|
87 | 86 | }
|
88 | 87 | *oi = consts::space_char();
|
89 | 88 | boost::copy(http_slash, oi);
|
90 |
| - string_type version_major_str = |
91 |
| - boost::lexical_cast<string_type>(version_major), |
92 |
| - version_minor_str = |
93 |
| - boost::lexical_cast<string_type>(version_minor); |
| 89 | + string_type version_major_str = std::to_string(version_major), |
| 90 | + version_minor_str = std::to_string(version_minor); |
94 | 91 | boost::copy(version_major_str, oi);
|
95 | 92 | *oi = consts::dot_char();
|
96 | 93 | boost::copy(version_minor_str, oi);
|
@@ -145,7 +142,7 @@ OutputIterator linearize(Request const& request,
|
145 | 142 | port(request);
|
146 | 143 | #endif
|
147 | 144 | if (port_) {
|
148 |
| - string_type port_str = boost::lexical_cast<string_type>(*port_); |
| 145 | + string_type port_str = std::to_string(*port_); |
149 | 146 | *oi = consts::colon_char();
|
150 | 147 | boost::copy(port_str, oi);
|
151 | 148 | }
|
|
0 commit comments