mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +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:
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
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ constexpr T&& move(T& arg)
|
|||
}
|
||||
|
||||
}
|
||||
#else
|
||||
#include <utility>
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
|
|
Loading…
Reference in a new issue