Fix building with boost_1_80 (#4340)
This commit is contained in:
parent
019af0ad1d
commit
81103491b4
1 changed files with 17 additions and 0 deletions
|
@ -59,6 +59,23 @@ struct spatially_equal_visitor
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result_type operator()(mapnik::geometry::multi_line_string<double> const& lhs,
|
||||||
|
mapnik::geometry::multi_line_string<double> const& rhs) const
|
||||||
|
{
|
||||||
|
|
||||||
|
std::size_t size0 = lhs.size();
|
||||||
|
std::size_t size1 = rhs.size();
|
||||||
|
if (size0 != size1)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
for (std::size_t index = 0; index < size0; ++index)
|
||||||
|
{
|
||||||
|
if (!boost::geometry::equals(lhs[index], rhs[index]))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
result_type operator()(T const& lhs, T const& rhs) const
|
result_type operator()(T const& lhs, T const& rhs) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue