diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-31 14:57:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-31 14:57:14 +0200 |
commit | 21e2103b836dc51d491c0bde598a926613f91bff (patch) | |
tree | 80d1be4706d72de447b62196314f949ca1ef4c40 | |
parent | 8ceee297981402eb5331f357b27ebfac11706ec4 (diff) |
Add missing move() in C++11 mode
-rw-r--r-- | odb/no-id-object-result.hxx | 4 | ||||
-rw-r--r-- | odb/polymorphic-object-result.hxx | 4 | ||||
-rw-r--r-- | odb/simple-object-result.hxx | 4 | ||||
-rw-r--r-- | odb/view-result.hxx | 4 |
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; } |