diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/algorithm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/algorithm b/src/include/algorithm index cc3886ff5..8d7d6f62f 100644 --- a/src/include/algorithm +++ b/src/include/algorithm @@ -27,6 +27,7 @@ #include <iterator> #include <util/impl/qsort.H> +#include <utility> #ifdef __cplusplus namespace std @@ -119,10 +120,9 @@ namespace std inline void swap(T& a, T&b ) { - // @TODO RTC:162287 use std::move() - T c(a); - a=b; - b=c; + T tmp(std::move(a)); + a = std::move(b); + b = std::move(tmp); } /** |