From bf9d25ce5802cbf64c36ac646521a4b24e6a5118 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Fri, 26 Nov 2010 16:30:45 +0100 Subject: Postfixed add_const and remove_const by _on_value_type to express the differences to the STL. --- Eigen/src/Core/util/Meta.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Eigen/src/Core/util/Meta.h') diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h index bb9a66cf1..2c8ee26a1 100644 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -54,10 +54,10 @@ template struct remove_pointer { typedef T type; }; template struct remove_pointer { typedef T type; }; template struct remove_pointer { typedef T type; }; -template struct remove_const { typedef T type; }; -template struct remove_const { typedef T type; }; -template struct remove_const { typedef T & type; }; -template struct remove_const { typedef T * type; }; +template struct remove_const_on_value_type { typedef T type; }; +template struct remove_const_on_value_type { typedef T type; }; +template struct remove_const_on_value_type { typedef T & type; }; +template struct remove_const_on_value_type { typedef T * type; }; template struct remove_all { typedef T type; }; template struct remove_all { typedef typename remove_all::type type; }; @@ -83,16 +83,16 @@ template<> struct is_arithmetic { enum { value = true }; }; template<> struct is_arithmetic { enum { value = true }; }; template<> struct is_arithmetic { enum { value = true }; }; -template struct add_const { typedef const T type; }; -template struct add_const { typedef const T type; }; -template struct add_const { typedef const T& type; }; -template struct add_const { typedef const T& type; }; -template struct add_const { typedef const T* type; }; -template struct add_const { typedef const T* type; }; +template struct add_const_on_value_type { typedef const T type; }; +template struct add_const_on_value_type { typedef const T type; }; +template struct add_const_on_value_type { typedef const T& type; }; +template struct add_const_on_value_type { typedef const T& type; }; +template struct add_const_on_value_type { typedef const T* type; }; +template struct add_const_on_value_type { typedef const T* type; }; template struct makeconst_return_type { - typedef typename conditional::value, T, typename add_const::type>::type type; + typedef typename conditional::value, T, typename add_const_on_value_type::type>::type type; }; /** \internal Allows to enable/disable an overload -- cgit v1.2.3