From 5b164e9934396041e1793eb9517a2b2b71e2c1d0 Mon Sep 17 00:00:00 2001 From: James Puleo Date: Sun, 2 Jan 2022 04:17:05 -0500 Subject: [PATCH] AK: Include `utility` from the STD if we aren't replacing STD If we didn't define our own `move` and `forward` and inject it into the `std` namespace, then we would error just after trying to `using` those, if no one has included it before. Now, we will include `utility` from the STD if we aren't replacing the `std`. --- AK/StdLibExtras.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index a361b42fd0d..844996cacf4 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -45,6 +45,8 @@ constexpr T&& move(T& arg) } } +#else +#include #endif // clang-format on