Unwrap function call from identity lambda
This commit is contained in:
parent
548fd92c15
commit
6380a6be05
@ -55,11 +55,7 @@ util::json::Object makeGeoJSONLineString(ForwardIter begin, ForwardIter end)
|
|||||||
util::json::Object geojson;
|
util::json::Object geojson;
|
||||||
geojson.values["type"] = "LineString";
|
geojson.values["type"] = "LineString";
|
||||||
util::json::Array coordinates;
|
util::json::Array coordinates;
|
||||||
std::transform(begin, end, std::back_inserter(coordinates.values),
|
std::transform(begin, end, std::back_inserter(coordinates.values), &detail::coordinateToLonLat);
|
||||||
[](const util::Coordinate loc)
|
|
||||||
{
|
|
||||||
return detail::coordinateToLonLat(loc);
|
|
||||||
});
|
|
||||||
geojson.values["coordinates"] = std::move(coordinates);
|
geojson.values["coordinates"] = std::move(coordinates);
|
||||||
return geojson;
|
return geojson;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user