AudRecordLib
|
00001 #ifndef SIMPLE_TRAITS_H 00002 #define SIMPLE_TRAITS_H 00003 00004 #pragma once 00005 00006 // some simple type traits impls, so we don't need boost or TR1 00007 template<class A, class B> 00008 struct is_same 00009 { 00010 static const bool value = false; 00011 }; 00012 00013 template<class A> 00014 struct is_same<A, A> 00015 { 00016 static const bool value = true; 00017 }; 00018 00019 template<class A> 00020 struct remove_pointer 00021 { 00022 typedef A type; 00023 }; 00024 00025 template<class A> 00026 struct remove_pointer<A*> 00027 { 00028 typedef A type; 00029 }; 00030 00031 #endif