aboutsummaryrefslogtreecommitdiff
path: root/odb/traits.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-02-28 16:11:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-02-28 16:19:50 +0200
commit43b3c92c5dae2d851f45fbe04f1c9ac6d9a933f4 (patch)
treebcd68c89b1c539e02a4f40eda003b821b806f1df /odb/traits.hxx
parentb377248ed27badc979e1fa02433baac0407557c7 (diff)
Add support for object pointers with two template parameters
Such as C++11 std::unique_ptr.
Diffstat (limited to 'odb/traits.hxx')
-rw-r--r--odb/traits.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/odb/traits.hxx b/odb/traits.hxx
index 9445c7a..4c71f94 100644
--- a/odb/traits.hxx
+++ b/odb/traits.hxx
@@ -163,12 +163,24 @@ namespace odb
struct id_type {};
};
+ template <typename T, typename A1, template <typename, typename> class P>
+ struct object_traits< P<T, A1> >
+ {
+ struct id_type {};
+ };
+
template <typename T, template <typename> class P>
struct object_traits< const P<T> >
{
struct id_type {};
};
+ template <typename T, typename A1, template <typename, typename> class P>
+ struct object_traits< const P<T, A1> >
+ {
+ struct id_type {};
+ };
+
//
// view_traits
//