]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/geometry/geometries/concepts/linestring_concept.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / geometries / concepts / linestring_concept.hpp
index b6366157fc1e0954cd97200f79ef59d86f1fcb02..c9adf1d447c31fb434a690463796604eaccc1a4d 100644 (file)
@@ -4,8 +4,8 @@
 // Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands.
 // 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
@@ -27,6 +27,7 @@
 #include <boost/geometry/core/mutable_range.hpp>
 #include <boost/geometry/core/point_type.hpp>
 
+#include <boost/geometry/geometries/concepts/concept_type.hpp>
 #include <boost/geometry/geometries/concepts/point_concept.hpp>
 
 
@@ -122,6 +123,20 @@ public :
 #endif
 };
 
+
+template <typename Geometry>
+struct concept_type<Geometry, linestring_tag>
+{
+    using type = Linestring<Geometry>;
+};
+
+template <typename Geometry>
+struct concept_type<Geometry const, linestring_tag>
+{
+    using type = ConstLinestring<Geometry>;
+};
+
+
 }}} // namespace boost::geometry::concepts