mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-30 05:05:10 +00:00
AK: Qualify forward call in AK::exchange
Otherwise it fails to resolve ambiguity between std::forward and AK::forward when called with the std:: type.
This commit is contained in:
parent
3780499761
commit
9054682536
|
@ -143,7 +143,7 @@ template<typename T, typename U = T>
|
|||
constexpr T exchange(T& slot, U&& value)
|
||||
{
|
||||
T old_value = move(slot);
|
||||
slot = forward<U>(value);
|
||||
slot = AK::forward<U>(value);
|
||||
return old_value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue