mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
fix: [imp] ‘T’ was not declared in this scope.
This commit is contained in:
parent
1565ae0eaf
commit
7e1f9f306e
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user