diff --git a/dune/common/tuples.hh b/dune/common/tuples.hh index 04193701a89ec2147581fc7326cac41b0e6cbb1c..8bfd1ff86bae0f26eb99e57ed20d7dee0caea678 100644 --- a/dune/common/tuples.hh +++ b/dune/common/tuples.hh @@ -33,15 +33,15 @@ namespace Dune { template<class T> struct TupleAccessTraits { - typedef typename ConstantVolatileTraits<T>::ConstType& ConstType; + typedef typename std::add_const<T>::type& ConstType; typedef T& NonConstType; - typedef const typename ConstantVolatileTraits<T>::UnqualifiedType& ParameterType; + typedef const typename std::remove_const<T>::type& ParameterType; }; template<class T> struct TupleAccessTraits<T*> { - typedef typename ConstantVolatileTraits<T>::ConstType* ConstType; + typedef typename std::add_const<T>::type* ConstType; typedef T* NonConstType; typedef T* ParameterType; };