]> git.tdb.fi Git - libs/core.git/commitdiff
Add RemoveReference meta-function
authorMikko Rasa <tdb@tdb.fi>
Wed, 3 Feb 2010 13:35:47 +0000 (13:35 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 3 Feb 2010 13:35:47 +0000 (13:35 +0000)
source/core/meta.h

index f12aede28a60029fd875377610d161d21ca63f61..f6dff160ff9be99df60b2522d28bdd368d2a7d95 100644 (file)
@@ -18,6 +18,14 @@ template<typename T>
 struct RemoveConst<const T>
 { typedef T Type; };
 
+template<typename T>
+struct RemoveReference
+{ typedef T Type; };
+
+template<typename T>
+struct RemoveReference<T &>
+{ typedef T Type; };
+
 } // namespace Msp
 
 #endif