remove makeconst_return_type

This commit is contained in:
Benoit Jacob
2010-12-01 09:22:50 -05:00
parent f0ba513f41
commit 46387cc180
2 changed files with 14 additions and 9 deletions

View File

@@ -92,11 +92,6 @@ template<typename T> struct add_const_on_value_type<T*> { typedef T const
template<typename T> struct add_const_on_value_type<T* const> { typedef T const* const type; };
template<typename T> struct add_const_on_value_type<T const* const> { typedef T const* const type; };
template<typename T> struct makeconst_return_type
{
typedef typename conditional<is_arithmetic<T>::value, T, typename add_const_on_value_type<T>::type>::type type;
};
/** \internal Allows to enable/disable an overload
* according to a compile time condition.
*/