Fix potential iterator out of range condition by using appropriate function (ref #4218) via @mathisloge

```
template< class InputIt1, class InputIt2, class BinaryPredicate >

bool equal( InputIt1 first1, InputIt1 last1,
            InputIt2 first2, InputIt2 last2,
            BinaryPredicate p );
```
This commit is contained in:
Artem Pavlenko 2021-03-25 16:03:15 +00:00
parent 503b9c5bbf
commit 5dfd1a24fc

View file

@ -233,7 +233,7 @@ struct ignore_case_equal_pred
bool ignore_case_equal(std::string const& s0, std::string const& s1) bool ignore_case_equal(std::string const& s0, std::string const& s1)
{ {
return std::equal(s0.begin(), s0.end(), return std::equal(s0.begin(), s0.end(),
s1.begin(), ignore_case_equal_pred()); s1.begin(), s1.end(), ignore_case_equal_pred());
} }
void csv_file_parser::add_feature(mapnik::value_integer, mapnik::csv_line const & ) void csv_file_parser::add_feature(mapnik::value_integer, mapnik::csv_line const & )