]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/geometry/geometries/concepts/multi_polygon_concept.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / geometries / concepts / multi_polygon_concept.hpp
index 48aec2d6cf90073b112a001f8c1c2b2cad1c7477..5118502c13829330cf5cc7e86a2337b5645e2af8 100644 (file)
@@ -4,8 +4,8 @@
 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
 
-// This file was modified by Oracle on 2020.
-// Modifications copyright (c) 2020 Oracle and/or its affiliates.
+// This file was modified by Oracle on 2020-2021.
+// Modifications copyright (c) 2020-2021 Oracle and/or its affiliates.
 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
 
 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
@@ -24,6 +24,7 @@
 #include <boost/range/concepts.hpp>
 #include <boost/range/value_type.hpp>
 
+#include <boost/geometry/geometries/concepts/concept_type.hpp>
 #include <boost/geometry/geometries/concepts/polygon_concept.hpp>
 
 
@@ -89,6 +90,19 @@ public :
 };
 
 
+template <typename Geometry>
+struct concept_type<Geometry, multi_polygon_tag>
+{
+    using type = MultiPolygon<Geometry>;
+};
+
+template <typename Geometry>
+struct concept_type<Geometry const, multi_polygon_tag>
+{
+    using type = ConstMultiPolygon<Geometry>;
+};
+
+
 }}} // namespace boost::geometry::concepts