From 42ed65a28dcf3c9975fd9a9470c16e356ef39ac2 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@dune-project.org>
Date: Mon, 26 Feb 2007 15:32:26 +0000
Subject: [PATCH] removed RemoveConst and SameType

[[Imported from SVN: r4857]]
---
 common/typetraits.hh | 38 ++++----------------------------------
 1 file changed, 4 insertions(+), 34 deletions(-)

diff --git a/common/typetraits.hh b/common/typetraits.hh
index b95e2233f..43d1e0185 100644
--- a/common/typetraits.hh
+++ b/common/typetraits.hh
@@ -141,6 +141,10 @@ namespace Dune
     };
   };
 
+#ifdef HAVE_TR1_TYPE_TRAITS
+  using std::tr1::remove_const;
+#else
+
   template<typename T, bool isVolatile>
   struct RemoveConstHelper
   {
@@ -153,19 +157,6 @@ namespace Dune
     typedef volatile typename ConstantVolatileTraits<T>::UnqualifiedType Type;
   };
 
-
-  /**
-   * @brief Removes a const qualifier while preserving others.
-   */
-  template<typename T>
-  struct RemoveConst
-  {
-    typedef typename RemoveConstHelper<T, IsVolatile<T>::value>::Type Type;
-  };
-
-#ifdef HAVE_TR1_TYPE_TRAITS
-  using std::tr1::remove_const;
-#else
   /**
    * @brief Removes a const qualifier while preserving others.
    */
@@ -297,27 +288,6 @@ namespace Dune
   };
 #endif
 
-  /**
-   * @brief Compile time test for testing whether
-   * two types are the same.
-   * \deprecated Use is_same instead
-   */
-  template<typename T1, typename T2>
-  struct SameType
-  {
-    enum {
-      /* @brief Whether T1 is the same type as T2. */
-      value=false
-    };
-  };
-
-
-  template<typename T>
-  struct SameType<T,T>
-  {
-    enum { value=true};
-  };
-
   /**
    * @brief Select a type based on a condition.
    *
-- 
GitLab