From 604c5cb98e8be38126f48bfd0b821772553be005 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 19 Jan 2020 10:28:58 +0100 Subject: [PATCH] AK: Add some missing "inline" keywords in StdLibExtras.h --- AK/StdLibExtras.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index b65ee96bdc..565ef2ace7 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -99,7 +99,7 @@ inline constexpr T ceil_div(T a, U b) # pragma clang diagnostic ignored "-Wconsumed" #endif template -T&& move(T& arg) +inline T&& move(T& arg) { return static_cast(arg); } @@ -113,13 +113,13 @@ struct Identity { }; template -constexpr T&& forward(typename Identity::Type& param) +inline constexpr T&& forward(typename Identity::Type& param) { return static_cast(param); } template -T exchange(T& a, U&& b) +inline T exchange(T& a, U&& b) { T tmp = move(a); a = move(b); @@ -127,7 +127,7 @@ T exchange(T& a, U&& b) } template -void swap(T& a, U& b) +inline void swap(T& a, U& b) { U tmp = move((U&)a); a = (T &&) move(b);