[result] try to fix type conversion on s390x

This commit is contained in:
Tim Stack 2022-09-30 22:20:44 -07:00
parent 1a92701cb3
commit e135cf3334
1 changed files with 2 additions and 2 deletions

View File

@ -859,11 +859,11 @@ struct Result {
template<typename U = T>
typename std::enable_if<
!std::is_same<U, void>::value,
U
T
>::type
unwrapOr(const U& defaultValue) const {
if (isOk()) {
return storage().template get<U>();
return storage().template get<T>();
}
return defaultValue;
}