diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-26 15:59:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-26 15:59:31 +0200 |
commit | b119086e8c5835695cd851da8ad1393218aa29df (patch) | |
tree | cf21640ee76f05b3ef067fb182baea0a57acbad1 /odb/simple-object-result.hxx | |
parent | b2f552f3505c1d8247e1a0ca844fe372ef639f79 (diff) |
Get pointer_type from correct traits (object, view)
Diffstat (limited to 'odb/simple-object-result.hxx')
-rw-r--r-- | odb/simple-object-result.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/simple-object-result.hxx b/odb/simple-object-result.hxx index 925896e..d944179 100644 --- a/odb/simple-object-result.hxx +++ b/odb/simple-object-result.hxx @@ -167,10 +167,12 @@ namespace odb } public: - typename object_traits<T>::pointer_type + typedef typename object_traits<T>::pointer_type pointer_type; + + pointer_type load () { - typename object_traits<T>::pointer_type r (res_->current ()); + pointer_type r (res_->current ()); res_->release (); return r; } |