aboutsummaryrefslogtreecommitdiff
path: root/odb/details/meta/remove-p.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/meta/remove-p.hxx')
-rw-r--r--odb/details/meta/remove-p.hxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/odb/details/meta/remove-p.hxx b/odb/details/meta/remove-p.hxx
new file mode 100644
index 0000000..c8f6d92
--- /dev/null
+++ b/odb/details/meta/remove-p.hxx
@@ -0,0 +1,30 @@
+// file : odb/details/meta/remove-p.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_DETAILS_META_REMOVE_P_HXX
+#define ODB_DETAILS_META_REMOVE_P_HXX
+
+namespace odb
+{
+ namespace details
+ {
+ namespace meta
+ {
+ template <typename X>
+ struct remove_p
+ {
+ typedef X r;
+ };
+
+ template <typename X>
+ struct remove_p<X*>
+ {
+ typedef X r;
+ };
+ }
+ }
+}
+
+#endif // ODB_DETAILS_META_REMOVE_P_HXX