summaryrefslogtreecommitdiff
path: root/AK/StdLibExtras.h
diff options
context:
space:
mode:
authorJames Puleo <james@jame.xyz>2022-01-02 04:17:05 -0500
committerAndreas Kling <kling@serenityos.org>2022-01-02 12:05:12 +0100
commit5b164e9934396041e1793eb9517a2b2b71e2c1d0 (patch)
tree49705df880e507b4c3c39f50b0e42b7c40177fba /AK/StdLibExtras.h
parentfae7301ffcb651ac9977fdf3c29b18fa6ab4b1ca (diff)
downloadserenity-5b164e9934396041e1793eb9517a2b2b71e2c1d0.zip
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`.
Diffstat (limited to 'AK/StdLibExtras.h')
-rw-r--r--AK/StdLibExtras.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h
index a361b42fd0..844996cacf 100644
--- a/AK/StdLibExtras.h
+++ b/AK/StdLibExtras.h
@@ -45,6 +45,8 @@ constexpr T&& move(T& arg)
}
}
+#else
+#include <utility>
#endif
// clang-format on