thread/WindowsFuture: remove wrong address_of operator

This commit is contained in:
Shen-Ta Hsieh 2023-05-30 02:16:26 +08:00 committed by Max Kellermann
parent bcb393628e
commit 70879f0abc
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
ver 0.23.14 (not yet released)
* decoder
- mad: fix calculation of LAME peak values
* mixer
- wasapi: fix problem setting volume
ver 0.23.13 (2023/05/22)
* input

View File

@ -130,7 +130,7 @@ public:
void set_value(const T &value) {
std::unique_lock<CriticalSection> lock(mutex);
if (!std::holds_alternative<std::monostate>(&result)) {
if (!std::holds_alternative<std::monostate>(result)) {
throw WinFutureError(WinFutureErrc::promise_already_satisfied);
}
result.template emplace<T>(value);