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:
Dan Klishch 2024-02-11 23:36:29 -05:00 committed by Ali Mohammad Pur
parent 3780499761
commit 9054682536

View file

@ -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;
}