diff options
Diffstat (limited to 'odb/std-set-traits.hxx')
-rw-r--r-- | odb/std-set-traits.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/std-set-traits.hxx b/odb/std-set-traits.hxx index a4a5923..e6b4853 100644 --- a/odb/std-set-traits.hxx +++ b/odb/std-set-traits.hxx @@ -8,8 +8,10 @@ #include <odb/pre.hxx> #include <set> +#include <utility> // std::move #include <odb/container-traits.hxx> +#include <odb/details/config.hxx> // ODB_CXX11 namespace odb { @@ -42,7 +44,11 @@ namespace odb { value_type v; more = f.load_all (v); +#ifdef ODB_CXX11 + c.insert (std::move (v)); +#else c.insert (v); +#endif } } @@ -96,7 +102,11 @@ namespace odb { value_type v; more = f.load_all (v); +#ifdef ODB_CXX11 + c.insert (std::move (v)); +#else c.insert (v); +#endif } } |