diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-13 15:13:36 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-13 15:13:36 +0100 |
commit | a728bb2e3c970183a86fa92fe5d24cdfe95e7812 (patch) | |
tree | ed9237d23f7d094356d6ab2ce25a78a06792930a /framework | |
parent | 35396a99831cb309220908a68f3430587641fd49 (diff) | |
download | kube-a728bb2e3c970183a86fa92fe5d24cdfe95e7812.tar.gz kube-a728bb2e3c970183a86fa92fe5d24cdfe95e7812.zip |
No Q_ASSERT in constexpr for now
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() && |