bugfix in Product and ei_L2_block_traits

This commit is contained in:
Gael Guennebaud
2008-08-24 16:00:17 +00:00
parent 440664cd5d
commit bf17467ce0
5 changed files with 23 additions and 13 deletions

View File

@@ -54,7 +54,11 @@ template<typename T> struct ei_unpointer<T*const> { typedef T type; };
template<typename T> struct ei_unconst { typedef T type; };
template<typename T> struct ei_unconst<const T> { typedef T type; };
// template<typename T> struct ei_unconst<const T&> { typedef T& type; };
template<typename T> struct ei_unconst<T const &> { typedef T & type; };
template<typename T> struct ei_unconst<T const *> { typedef T * type; };
template<typename T> struct ei_unconst<T const volatile> { typedef T volatile type; };
template<typename T> struct ei_unconst<T const volatile &> { typedef T volatile & type; };
template<typename T> struct ei_unconst<T const volatile *> { typedef T volatile * type; };
template<typename T> struct ei_cleantype { typedef T type; };
template<typename T> struct ei_cleantype<const T> { typedef typename ei_cleantype<T>::type type; };