aboutsummaryrefslogtreecommitdiff
path: root/odb/polymorphic-object-result.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-26 15:59:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-26 15:59:31 +0200
commitb119086e8c5835695cd851da8ad1393218aa29df (patch)
treecf21640ee76f05b3ef067fb182baea0a57acbad1 /odb/polymorphic-object-result.hxx
parentb2f552f3505c1d8247e1a0ca844fe372ef639f79 (diff)
Get pointer_type from correct traits (object, view)
Diffstat (limited to 'odb/polymorphic-object-result.hxx')
-rw-r--r--odb/polymorphic-object-result.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/polymorphic-object-result.hxx b/odb/polymorphic-object-result.hxx
index 2adeaa3..82b7647 100644
--- a/odb/polymorphic-object-result.hxx
+++ b/odb/polymorphic-object-result.hxx
@@ -184,10 +184,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;
}