Avoid using c++14 extensions as v3.0.x should only require c++11 compliant compiler (fixes #3645).

This commit is contained in:
artemp 2017-03-29 09:58:54 +01:00
parent 635af3f4a3
commit 149d2ca0a1

View file

@ -139,7 +139,7 @@ TEST_CASE("geojson") {
CHECK(mapnik::util::to_geojson(json_out, geom));
json.erase(std::remove_if(
std::begin(json), std::end(json),
[l = std::locale{}](char ch) { return std::isspace(ch, l); }
[](char ch) { return std::isspace(ch, std::locale{}); }
), std::end(json));
REQUIRE(json == json_out);
}