diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/src/errors.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/src/errors.h b/framework/src/errors.h index a0b27084..4ab2b1a6 100644 --- a/framework/src/errors.h +++ b/framework/src/errors.h | |||
@@ -280,7 +280,8 @@ struct ExpectedBase : detail::Storage<Error, Type> | |||
280 | // an expected value before calling `.value()` | 280 | // an expected value before calling `.value()` |
281 | constexpr const Type &value() const & | 281 | constexpr const Type &value() const & |
282 | { | 282 | { |
283 | Q_ASSERT(this->mIsValue); | 283 | //FIXME: Q_ASSERT cannot be used in a constexpr with qt 5.9. See also: https://git.qt.io/consulting-usa/qtbase-xcb-rendering/commit/8ea27bb1c669e21100a6a042b0378b3346bdf671 |
284 | //Q_ASSERT(this->mIsValue); | ||
284 | return this->mValue; | 285 | return this->mValue; |
285 | } | 286 | } |
286 | Type &&value() && | 287 | Type &&value() && |