Skip to content
Snippets Groups Projects
Commit 40ef8d52 authored by Oliver Sander's avatar Oliver Sander
Browse files

the classes RemoveConst and SameType, which have been deprecated in 1.1, are...

the classes RemoveConst and SameType, which have been deprecated in 1.1, are now removed.  Use remove_const and is_same instead

[[Imported from SVN: r5133]]
parent 4457d102
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,6 @@
#ifndef DUNE_TYPETRAITS_HH
#define DUNE_TYPETRAITS_HH
#include <dune/common/deprecated.hh>
#ifdef HAVE_TR1_TYPE_TRAITS
#include <tr1/type_traits>
#elif defined HAVE_TYPE_TRAITS
......@@ -173,16 +171,6 @@ namespace Dune
};
#endif
/**
* @brief Removes a const qualifier while preserving others.
* \deprecated Use remove_const instead!
*/
template<typename T>
struct RemoveConst
{
typedef typename RemoveConstHelper<T, IsVolatile<T>::value>::Type Type;
} DUNE_DEPRECATED;
/**
* @brief Checks wether a type is derived from another.
*
......@@ -306,30 +294,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
};
} DUNE_DEPRECATED;
/**
* @brief Compile time test for testing whether two types are the same.
* \deprecated Use is_same instead!
*/
template<typename T>
struct SameType<T,T>
{
enum { value=true};
} DUNE_DEPRECATED;
/**
* @brief Select a type based on a condition.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment