From f741d58fd686d71896b9107049108c1a4414dba4 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 30 Aug 2022 10:40:25 +0100 Subject: [PATCH] Fix building with boost_1_80 (#4340) (cherry picked from commit 81103491b467e17218140f50bc0bb9dc8c1f0317) --- test/unit/serialization/wkb_test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/unit/serialization/wkb_test.cpp b/test/unit/serialization/wkb_test.cpp index 8a617df26..26b019951 100644 --- a/test/unit/serialization/wkb_test.cpp +++ b/test/unit/serialization/wkb_test.cpp @@ -57,6 +57,23 @@ struct spatially_equal_visitor return true; } + result_type operator()(mapnik::geometry::multi_line_string const& lhs, + mapnik::geometry::multi_line_string 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 result_type operator() (T const& lhs, T const& rhs) const {