]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/geometry/algorithms/detail/sections/section_box_policies.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / geometry / algorithms / detail / sections / section_box_policies.hpp
index e6342ff7098a442a4852b88ca44c698adbf04488..5727ee8171f4c5f2564424e86846edfce5651af9 100644 (file)
@@ -14,6 +14,7 @@
 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_SECTIONS_SECTION_BOX_POLICIES_HPP
 
 
+#include <boost/geometry/core/coordinate_type.hpp>
 #include <boost/geometry/algorithms/detail/disjoint/box_box.hpp>
 #include <boost/geometry/algorithms/expand.hpp>
 
@@ -31,6 +32,7 @@ struct get_section_box
     template <typename Box, typename Section>
     static inline void apply(Box& total, Section const& section)
     {
+        assert_coordinate_type_equal(total, section.bounding_box);
         geometry::expand(total, section.bounding_box,
                          ExpandBoxStrategy());
     }
@@ -42,6 +44,7 @@ struct overlaps_section_box
     template <typename Box, typename Section>
     static inline bool apply(Box const& box, Section const& section)
     {
+        assert_coordinate_type_equal(box, section.bounding_box);
         return ! detail::disjoint::disjoint_box_box(box, section.bounding_box,
                                                     DisjointBoxBoxStrategy());
     }