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 /odb/simple-object-result.hxx | |
parent | 8ceee297981402eb5331f357b27ebfac11706ec4 (diff) |
Add missing move() in C++11 mode
Diffstat (limited to 'odb/simple-object-result.hxx')
-rw-r--r-- | odb/simple-object-result.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |