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 <sona.kurazyan@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
This commit is contained in:
parent
20a31b1a39
commit
7dd4c93748
@ -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() { }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user