Do not modify the end iterator, make const

This commit is contained in:
Daniel J. Hofmann
2016-04-01 10:53:17 +02:00
committed by Patrick Niklaus
parent 6643e7f499
commit 891ff7dd80
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;