aboutsummaryrefslogtreecommitdiff
path: root/odb/polymorphic-object-result.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/polymorphic-object-result.hxx')
-rw-r--r--odb/polymorphic-object-result.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/odb/polymorphic-object-result.hxx b/odb/polymorphic-object-result.hxx
index 82b7647..d0de742 100644
--- a/odb/polymorphic-object-result.hxx
+++ b/odb/polymorphic-object-result.hxx
@@ -189,7 +189,11 @@ namespace odb
pointer_type
load ()
{
+#ifdef ODB_CXX11
+ pointer_type r (std::move (res_->current ()));
+#else
pointer_type r (res_->current ());
+#endif
res_->release ();
return r;
}