Merge pull request #3219 from mapnik/address-sanitizer-happy

keep address-sanitizer happy ref (https://github.com/mapbox/mapnik-ve
This commit is contained in:
Artem Pavlenko 2016-01-07 14:23:54 +00:00
commit 513cfa7c80

View file

@ -63,10 +63,10 @@ struct set_position_impl
struct push_position_impl
{
using result_type = void;
template <typename T0,typename T1>
template <typename T0, typename T1>
result_type operator() (T0 & coords, T1 const& pos) const
{
if (pos) coords.push_back(*pos);
if (pos) coords.emplace_back(*pos);
}
};