aboutsummaryrefslogtreecommitdiff
path: root/odb/details/meta/remove-const.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-05 10:11:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-05 10:11:28 +0200
commit713b3a62d97c6bea7c23597094af6b2439314b8c (patch)
tree7d8c1609b3215231459de2b66c243dac39e4001e /odb/details/meta/remove-const.hxx
parentccdf7823df5974f1f55c347d3bb8b23e7738b047 (diff)
Use more descriptive names in details/meta/
Diffstat (limited to 'odb/details/meta/remove-const.hxx')
-rw-r--r--odb/details/meta/remove-const.hxx34
1 files changed, 34 insertions, 0 deletions
diff --git a/odb/details/meta/remove-const.hxx b/odb/details/meta/remove-const.hxx
new file mode 100644
index 0000000..93e1f5f
--- /dev/null
+++ b/odb/details/meta/remove-const.hxx
@@ -0,0 +1,34 @@
+// file : odb/details/meta/remove-const.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_DETAILS_META_REMOVE_CONST_HXX
+#define ODB_DETAILS_META_REMOVE_CONST_HXX
+
+#include <odb/pre.hxx>
+
+namespace odb
+{
+ namespace details
+ {
+ namespace meta
+ {
+ template <typename X>
+ struct remove_const
+ {
+ typedef X result;
+ };
+
+ template <typename X>
+ struct remove_const<const X>
+ {
+ typedef X result;
+ };
+ }
+ }
+}
+
+#include <odb/post.hxx>
+
+#endif // ODB_DETAILS_META_REMOVE_CONST_HXX