diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/include/Ice/Traits.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/cpp/include/Ice/Traits.h b/cpp/include/Ice/Traits.h index e81cffdeaa1..f1e2cb50401 100644 --- a/cpp/include/Ice/Traits.h +++ b/cpp/include/Ice/Traits.h @@ -1,3 +1,4 @@ + #ifndef ICE_TRAITS_H #define ICE_TRAITS_H @@ -14,31 +15,6 @@ class Value; template<class T> using IsProxy = ::std::is_base_of<::Ice::ObjectPrx, T>; template<class T> using IsValue = ::std::is_base_of<::Ice::Value, T>; -enum class Kind { Value, Proxy }; - -template<typename T> -struct TypeTraits -{ - constexpr static bool isKind(Kind kind) - { - switch(kind) - { - case Kind::Value: - { - return std::is_base_of<Value, T>::value; - } - case Kind::Proxy: - { - return std::is_base_of<ObjectPrx, T>::value; - } - default: - { - return false; - } - } - } -}; - } #endif |