diff options
Diffstat (limited to 'boost/geometry/util/bare_type.hpp')
-rw-r--r-- | boost/geometry/util/bare_type.hpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/boost/geometry/util/bare_type.hpp b/boost/geometry/util/bare_type.hpp index 1b49de6436..26dd94a8ae 100644 --- a/boost/geometry/util/bare_type.hpp +++ b/boost/geometry/util/bare_type.hpp @@ -4,6 +4,11 @@ // Copyright (c) 2012 Bruno Lalande, Paris, France. // Copyright (c) 2012 Mateusz Loskot, London, UK. +// This file was modified by Oracle on 2014. +// Modifications copyright (c) 2014 Oracle and/or its affiliates. + +// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle + // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) @@ -11,7 +16,10 @@ #ifndef BOOST_GEOMETRY_UTIL_BARE_TYPE_HPP #define BOOST_GEOMETRY_UTIL_BARE_TYPE_HPP -#include <boost/type_traits.hpp> + +#include <boost/type_traits/remove_const.hpp> +#include <boost/type_traits/remove_pointer.hpp> +#include <boost/type_traits/remove_reference.hpp> namespace boost { namespace geometry @@ -25,7 +33,13 @@ struct bare_type { typedef typename boost::remove_const < - typename boost::remove_pointer<T>::type + typename boost::remove_pointer + < + typename boost::remove_reference + < + T + >::type + >::type >::type type; }; |