summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/thread/qfutureinterface_p.h2
1 files changed, 2 insertions, 0 deletions
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() { }
};