Skip to content

Commit 48e511e

Browse files
committed
Making the grammar instantiation static to avoid construction/destruction of the grammar on multiple calls to parse_uri.
1 parent 411bac0 commit 48e511e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/uri/detail/parse_uri.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ bool parse_uri(Range & range, uri_parts<Tag> & parts) {
247247
iterator start_ = boost::begin(range);
248248
iterator end_ = boost::end(range);
249249

250-
uri_grammar<iterator, Tag> grammar;
250+
static uri_grammar<iterator, Tag> grammar;
251251

252252
bool ok = qi::parse(start_, end_, grammar, parts);
253253

0 commit comments

Comments
 (0)