diff options
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; } |