mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03: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:
parent
fae7301ffc
commit
5b164e9934
Notes:
sideshowbarker
2024-07-17 21:48:28 +09:00
Author: https://github.com/drunderscore Commit: https://github.com/SerenityOS/serenity/commit/5b164e99343 Pull-request: https://github.com/SerenityOS/serenity/pull/11560
@ -45,6 +45,8 @@ constexpr T&& move(T& arg)
|
||||
}
|
||||
|
||||
}
|
||||
#else
|
||||
#include <utility>
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user