projects/guix·blob java-team · refs

21 lines · 583 B

1The std::terminate function is declared in the <exception> header, so we need
2to include it in the non-exception case.
3
4Upstream-Status: https://github.com/tcbrindle/span/pull/53
5
6diff --git a/include/tcb/span.hpp b/include/tcb/span.hpp
7index 8efcddb..96aaef5 100644
8--- a/include/tcb/span.hpp
9+++ b/include/tcb/span.hpp
10@@ -27,6 +27,8 @@ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4820.pdf
11 #ifndef TCB_SPAN_NO_EXCEPTIONS
12 #include <cstdio>
13 #include <stdexcept>
14+#else
15+#include <exception> // for std::terminate
16 #endif
17
18 // Various feature test macros
19--
202.54.0
21