aboutsummaryrefslogtreecommitdiff
path: root/odb/polymorphic-object-result.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-31 14:57:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-31 14:57:14 +0200
commit21e2103b836dc51d491c0bde598a926613f91bff (patch)
tree80d1be4706d72de447b62196314f949ca1ef4c40 /odb/polymorphic-object-result.hxx
parent8ceee297981402eb5331f357b27ebfac11706ec4 (diff)
Add missing move() in C++11 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;
}