diff options
author | James Puleo <james@jame.xyz> | 2022-01-02 04:17:05 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-02 12:05:12 +0100 |
commit | 5b164e9934396041e1793eb9517a2b2b71e2c1d0 (patch) | |
tree | 49705df880e507b4c3c39f50b0e42b7c40177fba /AK/StdLibExtras.h | |
parent | fae7301ffcb651ac9977fdf3c29b18fa6ab4b1ca (diff) | |
download | serenity-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.h | 2 |
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 |