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 | 0636a81f69423763f48d2576a143e0ba361bcabc (patch) | |
tree | bdfe80da91cc565f3914f0d2228e93f4266a7e1b | |
parent | 4ae3d5608653ae06c1ea72766b9448e5f4f15e6e (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.
-rw-r--r-- | odb/mysql/object-result.hxx | 7 | ||||
-rw-r--r-- | odb/mysql/view-result.hxx | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/odb/mysql/object-result.hxx b/odb/mysql/object-result.hxx index c7fcbae..ff99111 100644 --- a/odb/mysql/object-result.hxx +++ b/odb/mysql/object-result.hxx @@ -28,13 +28,12 @@ namespace odb public: typedef odb::result_impl<T, class_object> base_type; - typedef typename base_type::pointer_type pointer_type; - typedef typename base_type::pointer_traits pointer_traits; - typedef typename base_type::object_type object_type; - typedef typename base_type::id_type id_type; typedef typename base_type::object_traits object_traits; + typedef typename base_type::id_type id_type; + typedef typename base_type::pointer_type pointer_type; + typedef typename base_type::pointer_traits pointer_traits; virtual ~result_impl (); diff --git a/odb/mysql/view-result.hxx b/odb/mysql/view-result.hxx index 23f0541..8acb97d 100644 --- a/odb/mysql/view-result.hxx +++ b/odb/mysql/view-result.hxx @@ -27,12 +27,11 @@ namespace odb public: typedef odb::result_impl<T, class_view> base_type; - typedef typename base_type::pointer_type pointer_type; - typedef typename base_type::pointer_traits pointer_traits; - typedef typename base_type::view_type view_type; typedef typename base_type::view_traits view_traits; + typedef typename base_type::pointer_type pointer_type; + typedef typename base_type::pointer_traits pointer_traits; virtual ~result_impl (); |