forked from qt-creator/qt-creator
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:
2
src/libs/3rdparty/span/span.hpp
vendored
2
src/libs/3rdparty/span/span.hpp
vendored
@@ -27,6 +27,8 @@ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4820.pdf
|
||||
#ifndef TCB_SPAN_NO_EXCEPTIONS
|
||||
#include <cstdio>
|
||||
#include <stdexcept>
|
||||
#else
|
||||
#include <exception> // for std::terminate
|
||||
#endif
|
||||
|
||||
// Various feature test macros
|
||||
|
Reference in New Issue
Block a user