Skip to content

Commit b16cc29

Browse files
wilxunknown
authored andcommitted
boost\network\protocol\http\server\impl\parsers.ipp: Use intermediate variable to fix compilation.
1 parent d19dd2b commit b16cc29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

boost/network/protocol/http/server/impl/parsers.ipp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ namespace boost { namespace network { namespace http {
2424

2525
BOOST_NETWORK_INLINE void parse_version(std::string const & partial_parsed, fusion::tuple<uint8_t,uint8_t> & version_pair) {
2626
using namespace boost::spirit::qi;
27+
std::string::const_iterator it = partial_parsed.begin();
2728
parse(
28-
partial_parsed.begin(), partial_parsed.end(),
29+
it, partial_parsed.end(),
2930
(
3031
lit("HTTP/")
3132
>> ushort_
@@ -37,8 +38,9 @@ namespace boost { namespace network { namespace http {
3738

3839
BOOST_NETWORK_INLINE void parse_headers(std::string const & input, std::vector<request_header_narrow> & container) {
3940
using namespace boost::spirit::qi;
41+
std::string::const_iterator it = input.begin();
4042
parse(
41-
input.begin(), input.end(),
43+
it, input.end(),
4244
*(
4345
+(alnum|(punct-':'))
4446
>> lit(": ")

0 commit comments

Comments
 (0)