diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-21 13:00:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-21 13:00:33 +0200 |
commit | a28444da4ca6adb016f719e032174ccb54e1692e (patch) | |
tree | 75fe8ceae2d20baa3d4b5375a832598efe8b2fce /odb/database.hxx | |
parent | 0046a34d5ad5fc1e88b33279605f179646b0ea59 (diff) |
Rework const object handling
Now objects are always loaded as non-const and the object cache in
session treats all objects as non-const.
Diffstat (limited to 'odb/database.hxx')
-rw-r--r-- | odb/database.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/database.hxx b/odb/database.hxx index f24e0fa..7e29ddf 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -19,7 +19,6 @@ #include <odb/exceptions.hxx> #include <odb/details/export.hxx> -#include <odb/details/meta/remove-const.hxx> namespace odb { @@ -142,7 +141,7 @@ namespace odb template <typename T> unsigned long long - erase_query (const odb::query<typename object_traits<T>::object_type>&); + erase_query (const odb::query<T>&); // Query API. // @@ -160,8 +159,7 @@ namespace odb template <typename T> result<T> - query (const odb::query<typename details::meta::remove_const<T>::result>&, - bool cache = true); + query (const odb::query<T>&, bool cache = true); // Native database statement execution. // |