diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-02-28 16:11:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-02-28 16:19:50 +0200 |
commit | 43b3c92c5dae2d851f45fbe04f1c9ac6d9a933f4 (patch) | |
tree | bcd68c89b1c539e02a4f40eda003b821b806f1df /odb/traits.hxx | |
parent | b377248ed27badc979e1fa02433baac0407557c7 (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.hxx | 12 |
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 // |