From 43b3c92c5dae2d851f45fbe04f1c9ac6d9a933f4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Feb 2012 16:11:51 +0200 Subject: Add support for object pointers with two template parameters Such as C++11 std::unique_ptr. --- odb/traits.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'odb/traits.hxx') 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 class P> + struct object_traits< P > + { + struct id_type {}; + }; + template class P> struct object_traits< const P > { struct id_type {}; }; + template class P> + struct object_traits< const P > + { + struct id_type {}; + }; + // // view_traits // -- cgit v1.1