span: Fix debug build with MSVC

std::terminate is declared in <exception>, so we need to include
this header - somewhat ironically - in the non-exception case.

Change-Id: I8ff1c20fd822b8a2a4c85faedf81f783e2779b8d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Kai Köhne
2021-06-16 16:33:00 +02:00
parent 2c9ca6008f
commit 31740f562c

View File

@@ -27,6 +27,8 @@ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4820.pdf
#ifndef TCB_SPAN_NO_EXCEPTIONS #ifndef TCB_SPAN_NO_EXCEPTIONS
#include <cstdio> #include <cstdio>
#include <stdexcept> #include <stdexcept>
#else
#include <exception> // for std::terminate
#endif #endif
// Various feature test macros // Various feature test macros