Chris@16
|
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
|
Chris@16
|
2
|
Chris@16
|
3 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
Chris@16
|
4 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
Chris@16
|
5 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
Chris@16
|
6
|
Chris@16
|
7 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
Chris@16
|
8 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
Chris@16
|
9
|
Chris@16
|
10 // Use, modification and distribution is subject to the Boost Software License,
|
Chris@16
|
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
12 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
13
|
Chris@16
|
14 #ifndef BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP
|
Chris@16
|
15 #define BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP
|
Chris@16
|
16
|
Chris@16
|
17
|
Chris@16
|
18 #include <boost/variant/variant_fwd.hpp>
|
Chris@101
|
19 #include <boost/mpl/front.hpp>
|
Chris@16
|
20
|
Chris@16
|
21
|
Chris@16
|
22 namespace boost { namespace geometry {
|
Chris@16
|
23
|
Chris@16
|
24
|
Chris@16
|
25 template <BOOST_VARIANT_ENUM_PARAMS(typename T)>
|
Chris@16
|
26 struct point_type<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> >
|
Chris@101
|
27 : point_type<
|
Chris@101
|
28 typename boost::mpl::front<
|
Chris@101
|
29 typename boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>::types
|
Chris@101
|
30 >::type
|
Chris@101
|
31 >
|
Chris@16
|
32 {};
|
Chris@16
|
33
|
Chris@16
|
34
|
Chris@16
|
35 } // namespace geometry
|
Chris@16
|
36 } // namespace boost
|
Chris@16
|
37
|
Chris@16
|
38
|
Chris@16
|
39 #endif // BOOST_GEOMETRY_GEOMETRIES_VARIANT_GEOMETRY_HPP
|