fix: [imp] ‘T’ was not declared in this scope.

This commit is contained in:
mutouyun 2023-04-02 21:06:35 +08:00
parent 1565ae0eaf
commit 7e1f9f306e

View File

@ -192,11 +192,11 @@ struct value_getter<S, void, E> : data_union<void, E> {
using data_union<void, E>::data_union; using data_union<void, E>::data_union;
template <typename U> template <typename U>
value_getter(U &&other) : data_union<T, E>(nullptr) { value_getter(U &&other) : data_union<void, E>(nullptr) {
if (other) { if (other) {
construct<data_union<T, E>>(this, in_place); construct<data_union<void, E>>(this, in_place);
} else { } else {
construct<data_union<T, E>>(this, unexpected, std::forward<U>(other).error()); construct<data_union<void, E>>(this, unexpected, std::forward<U>(other).error());
} }
} }