diff --git a/test/unit/datasource/geojson.cpp b/test/unit/datasource/geojson.cpp index 54722800e..7e0ffbea4 100644 --- a/test/unit/datasource/geojson.cpp +++ b/test/unit/datasource/geojson.cpp @@ -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); }