diff options
Diffstat (limited to 'AK/StdLibExtras.h')
-rw-r--r-- | AK/StdLibExtras.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index e8e02703ee..02032ea1e2 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -82,7 +82,7 @@ inline constexpr T ceil_div(T a, U b) # pragma clang diagnostic ignored "-Wconsumed" #endif template<typename T> -inline T&& move(T& arg) +constexpr T&& move(T& arg) { return static_cast<T&&>(arg); } @@ -433,7 +433,7 @@ struct IsConst<const T> : TrueType { }; template<typename T, typename U = T> -inline constexpr T exchange(T& slot, U&& value) +constexpr T exchange(T& slot, U&& value) { T old_value = move(slot); slot = forward<U>(value); |