aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/no-id-object-result.hxx4
-rw-r--r--odb/polymorphic-object-result.hxx4
-rw-r--r--odb/simple-object-result.hxx4
-rw-r--r--odb/view-result.hxx4
4 files changed, 16 insertions, 0 deletions
diff --git a/odb/no-id-object-result.hxx b/odb/no-id-object-result.hxx
index b96dbcb..cba5db7 100644
--- a/odb/no-id-object-result.hxx
+++ b/odb/no-id-object-result.hxx
@@ -153,7 +153,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;
}
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;
}
diff --git a/odb/simple-object-result.hxx b/odb/simple-object-result.hxx
index d944179..092d263 100644
--- a/odb/simple-object-result.hxx
+++ b/odb/simple-object-result.hxx
@@ -172,7 +172,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;
}
diff --git a/odb/view-result.hxx b/odb/view-result.hxx
index db4e038..c948cfe 100644
--- a/odb/view-result.hxx
+++ b/odb/view-result.hxx
@@ -180,7 +180,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;
}