You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
612 B
32 lines
612 B
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// |
|
// Purpose: functionality that is provided in C++11 type_traits, which |
|
// currently isn't supported by the OSX compiler. Sadness. |
|
// |
|
//============================================================================= |
|
#pragma once |
|
|
|
template <class T> |
|
struct V_remove_const |
|
{ |
|
typedef T type; |
|
}; |
|
|
|
template <class T> |
|
struct V_remove_const<const T> |
|
{ |
|
typedef T type; |
|
}; |
|
|
|
template <class T> |
|
struct V_remove_const<const T[]> |
|
{ |
|
typedef T type; |
|
}; |
|
|
|
template <class T, unsigned int N> |
|
struct V_remove_const<const T[N]> |
|
{ |
|
typedef T type; |
|
}; |
|
|
|
|