]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/meta.h
Handle constness in Variant
[libs/core.git] / source / core / meta.h
diff --git a/source/core/meta.h b/source/core/meta.h
new file mode 100644 (file)
index 0000000..f12aede
--- /dev/null
@@ -0,0 +1,23 @@
+/* $Id$
+
+This file is part of libmspcore
+Copyright © 2008  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_CORE_META_H_
+#define MSP_CORE_META_H_
+
+namespace Msp {
+
+template<typename T>
+struct RemoveConst
+{ typedef T Type; };
+
+template<typename T>
+struct RemoveConst<const T>
+{ typedef T Type; };
+
+} // namespace Msp
+
+#endif