From 31740f562c9ce9014c1dc77acf5aa7b1117e4ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Wed, 16 Jun 2021 16:33:00 +0200 Subject: [PATCH] span: Fix debug build with MSVC std::terminate is declared in , so we need to include this header - somewhat ironically - in the non-exception case. Change-Id: I8ff1c20fd822b8a2a4c85faedf81f783e2779b8d Reviewed-by: Qt CI Bot Reviewed-by: Alessandro Portale Reviewed-by: Marco Bubke --- src/libs/3rdparty/span/span.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/3rdparty/span/span.hpp b/src/libs/3rdparty/span/span.hpp index a8414ab6fee..51bdf1da303 100644 --- a/src/libs/3rdparty/span/span.hpp +++ b/src/libs/3rdparty/span/span.hpp @@ -27,6 +27,8 @@ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4820.pdf #ifndef TCB_SPAN_NO_EXCEPTIONS #include #include +#else +#include // for std::terminate #endif // Various feature test macros