diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:07 +0200 |
commit | be97326d67365e16175cc599e23348feaf80e0fe (patch) | |
tree | b38678104546ebd549824096683bd00f3f2be299 /odb/polymorphic-info.hxx | |
parent | 0b583b575ec00c544759cbf8d6481d35c34c5f63 (diff) |
Ground work for multi-database support
All generated code now includes database id. The database-specific
database class interface has been updated to include all the database
operations. The database-specific tests now use this interface.
Diffstat (limited to 'odb/polymorphic-info.hxx')
-rw-r--r-- | odb/polymorphic-info.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/polymorphic-info.hxx b/odb/polymorphic-info.hxx index abed648..54291ce 100644 --- a/odb/polymorphic-info.hxx +++ b/odb/polymorphic-info.hxx @@ -86,14 +86,12 @@ namespace odb // Register concrete type T in the root's map. // - template <typename T> + template <typename T, database_id DB> struct polymorphic_entry { typedef T object_type; - typedef odb::object_traits<object_type> object_traits; - + typedef object_traits_impl<object_type, DB> object_traits; typedef typename object_traits::root_type root_type; - typedef odb::object_traits<root_type> root_traits; polymorphic_entry (); ~polymorphic_entry (); |