Do not modify the end iterator, make const
This commit is contained in:
committed by
Patrick Niklaus
parent
6643e7f499
commit
891ff7dd80
@@ -69,7 +69,7 @@ struct URLGrammar : boost::spirit::qi::grammar<Iterator>
|
||||
};
|
||||
}
|
||||
|
||||
boost::optional<ParsedURL> parseURL(std::string::iterator &iter, std::string::iterator end)
|
||||
boost::optional<ParsedURL> parseURL(std::string::iterator &iter, const std::string::iterator end)
|
||||
{
|
||||
boost::optional<ParsedURL> parsed_url;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user