]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/geometry/geometries/concepts/segment_concept.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / geometries / concepts / segment_concept.hpp
index 02bc21947d478aecd20121707e934c31eb8e0a5b..0240764212199b0449644c45d6be5b2bd714d601 100644 (file)
@@ -4,6 +4,10 @@
 // Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands.
 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
 
+// This file was modified by Oracle on 2021.
+// Modifications copyright (c) 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
 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
 
 #ifndef BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_SEGMENT_CONCEPT_HPP
 #define BOOST_GEOMETRY_GEOMETRIES_CONCEPTS_SEGMENT_CONCEPT_HPP
 
+
 #include <boost/concept_check.hpp>
 #include <boost/core/ignore_unused.hpp>
 
-#include <boost/geometry/geometries/concepts/point_concept.hpp>
-
 #include <boost/geometry/core/access.hpp>
 #include <boost/geometry/core/point_type.hpp>
 
+#include <boost/geometry/geometries/concepts/concept_type.hpp>
+#include <boost/geometry/geometries/concepts/point_concept.hpp>
+
 
 namespace boost { namespace geometry { namespace concepts
 {
@@ -129,6 +135,19 @@ public :
 };
 
 
+template <typename Geometry>
+struct concept_type<Geometry, segment_tag>
+{
+    using type = Segment<Geometry>;
+};
+
+template <typename Geometry>
+struct concept_type<Geometry const, segment_tag>
+{
+    using type = ConstSegment<Geometry>;
+};
+
+
 }}} // namespace boost::geometry::concepts