From a728bb2e3c970183a86fa92fe5d24cdfe95e7812 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 13 Mar 2018 15:13:36 +0100 Subject: No Q_ASSERT in constexpr for now --- framework/src/errors.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 // an expected value before calling `.value()` constexpr const Type &value() const & { - Q_ASSERT(this->mIsValue); + //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 + //Q_ASSERT(this->mIsValue); return this->mValue; } Type &&value() && -- cgit v1.2.3