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-map.txx | |
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-map.txx')
-rw-r--r-- | odb/polymorphic-map.txx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/polymorphic-map.txx b/odb/polymorphic-map.txx index d7b6e36..26534a6 100644 --- a/odb/polymorphic-map.txx +++ b/odb/polymorphic-map.txx @@ -39,8 +39,8 @@ namespace odb // polymorphic_entry_impl // - template <typename R> - void polymorphic_entry_impl<R>:: + template <typename R, database_id DB> + void polymorphic_entry_impl<R, DB>:: insert (const info_type& i) { // VC10 cannot grok constructor call syntax here. @@ -56,8 +56,8 @@ namespace odb pm->discriminator_map_[&i.discriminator] = &i; } - template <typename R> - void polymorphic_entry_impl<R>:: + template <typename R, database_id DB> + void polymorphic_entry_impl<R, DB>:: erase (const info_type& i) { // VC10 cannot grok constructor call syntax here. |