1 // Boost.Geometry (aka GGL, Generic Geometry Library)
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.
7 // This file was modified by Oracle on 2018.
8 // Modifications copyright (c) 2018, Oracle and/or its affiliates.
10 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
12 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
13 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
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)
19 #ifndef BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP
20 #define BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP
23 #include <boost/mpl/front.hpp>
24 #include <boost/variant/variant_fwd.hpp>
26 #include <boost/geometry/core/point_type.hpp>
29 namespace boost { namespace geometry {
32 template <BOOST_VARIANT_ENUM_PARAMS(typename T)>
33 struct point_type<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> >
35 typename boost::mpl::front<
36 typename boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>::types
42 } // namespace geometry
46 #endif // BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP