From 7dd4c937489451e72a671784dcd353e4c5bc16df Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 12 Jun 2021 10:20:33 +0300 Subject: [PATCH] QException: Fix no-exception build qtbase\src\corelib\thread\qfutureinterface_p.h(180): error C2039: 'setException': is not a member of 'QtPrivate::ExceptionStore' qtbase\src\corelib\thread\qexception.h(109): note: see declaration of 'QtPrivate::ExceptionStore' Change-Id: Id746b87af3f88d91c473f6a3d986dc0f022dfa2f Reviewed-by: Sona Kurazyan Reviewed-by: Andrei Golubev --- src/corelib/thread/qfutureinterface_p.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/thread/qfutureinterface_p.h b/src/corelib/thread/qfutureinterface_p.h index 3a4dd076d8..c92f8e2230 100644 --- a/src/corelib/thread/qfutureinterface_p.h +++ b/src/corelib/thread/qfutureinterface_p.h @@ -173,12 +173,14 @@ public: QtPrivate::ResultStoreBase m_results; QtPrivate::ExceptionStore m_exceptionStore; +#ifndef QT_NO_EXCEPTIONS void setException(const std::exception_ptr &e) { m_results.~ResultStoreBase(); new (&m_exceptionStore) QtPrivate::ExceptionStore(); m_exceptionStore.setException(e); } +#endif ~Data() { } };