From a29299b42b9cbf48255370fd3f788c7ee20de9f0 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 2 Sep 2013 10:05:03 +0200 Subject: [PATCH] Deprecate TypeTraits::PointeeType and TypeTraits::ReferredType Because C++11 implements this differently, and we now have an stl-compliant implementation to switch to. I would deprecate isPointer and isReference too, but I can't find a way to do it. --- dune/common/typetraits.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/common/typetraits.hh b/dune/common/typetraits.hh index 0ceb5adaa..a8744228c 100644 --- a/dune/common/typetraits.hh +++ b/dune/common/typetraits.hh @@ -69,10 +69,10 @@ namespace Dune public: enum { isPointer = PointerTraits<T>::result }; - typedef typename PointerTraits<T>::PointeeType PointeeType; + typedef typename PointerTraits<T>::PointeeType PointeeType DUNE_DEPRECATED_MSG("Use remove_pointer instead!"); enum { isReference = ReferenceTraits<T>::result }; - typedef typename ReferenceTraits<T>::ReferredType ReferredType; + typedef typename ReferenceTraits<T>::ReferredType ReferredType DUNE_DEPRECATED_MSG("Use remove_reference instead!"); }; /** -- GitLab