Unwrap function call from identity lambda
This commit is contained in:
		
							parent
							
								
									5a0ee6d1d8
								
							
						
					
					
						commit
						b8f6d3ca97
					
				| @ -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