]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/geometries/variant.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / geometry / geometries / variant.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
4 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
5 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
6
7 // This file was modified by Oracle on 2018.
8 // Modifications copyright (c) 2018, Oracle and/or its affiliates.
9
10 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
11
12 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
13 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
14
15 // Use, modification and distribution is subject to the Boost Software License,
16 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
18
19 #ifndef BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP
20 #define BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP
21
22
23 #include <boost/mpl/front.hpp>
24 #include <boost/variant/variant_fwd.hpp>
25
26 #include <boost/geometry/core/point_type.hpp>
27
28
29 namespace boost { namespace geometry {
30
31
32 template <BOOST_VARIANT_ENUM_PARAMS(typename T)>
33 struct point_type<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> >
34 : point_type<
35 typename boost::mpl::front<
36 typename boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>::types
37 >::type
38 >
39 {};
40
41
42 } // namespace geometry
43 } // namespace boost
44
45
46 #endif // BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP