diff options
Diffstat (limited to 'boost/geometry/geometries/variant.hpp')
-rw-r--r-- | boost/geometry/geometries/variant.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/boost/geometry/geometries/variant.hpp b/boost/geometry/geometries/variant.hpp index 9db11d5a82..881eab9c8b 100644 --- a/boost/geometry/geometries/variant.hpp +++ b/boost/geometry/geometries/variant.hpp @@ -16,6 +16,7 @@ #include <boost/variant/variant_fwd.hpp> +#include <boost/mpl/front.hpp> namespace boost { namespace geometry { @@ -23,7 +24,11 @@ namespace boost { namespace geometry { template <BOOST_VARIANT_ENUM_PARAMS(typename T)> struct point_type<boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> > - : point_type<T0> + : point_type< + typename boost::mpl::front< + typename boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>::types + >::type + > {}; |