1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:07:45 +00:00

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`.
This commit is contained in:
James Puleo 2022-01-02 04:17:05 -05:00 committed by Andreas Kling
parent fae7301ffc
commit 5b164e9934

View file

@ -45,6 +45,8 @@ constexpr T&& move(T& arg)
} }
} }
#else
#include <utility>
#endif #endif
// clang-format on // clang-format on