mirror of
https://github.com/tstack/lnav
synced 2024-11-19 15:25:34 +00:00
[result] try to fix type conversion on s390x
This commit is contained in:
parent
1a92701cb3
commit
e135cf3334
@ -859,11 +859,11 @@ struct Result {
|
|||||||
template<typename U = T>
|
template<typename U = T>
|
||||||
typename std::enable_if<
|
typename std::enable_if<
|
||||||
!std::is_same<U, void>::value,
|
!std::is_same<U, void>::value,
|
||||||
U
|
T
|
||||||
>::type
|
>::type
|
||||||
unwrapOr(const U& defaultValue) const {
|
unwrapOr(const U& defaultValue) const {
|
||||||
if (isOk()) {
|
if (isOk()) {
|
||||||
return storage().template get<U>();
|
return storage().template get<T>();
|
||||||
}
|
}
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user