| 1 | The std::terminate function is declared in the <exception> header, so we need
|
| 2 | to include it in the non-exception case.
|
| 3 |
|
| 4 | Upstream-Status: https://github.com/tcbrindle/span/pull/53
|
| 5 |
|
| 6 | diff --git a/include/tcb/span.hpp b/include/tcb/span.hpp
|
| 7 | index 8efcddb..96aaef5 100644
|
| 8 | |
| 9 | |
| 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 | --
|
| 20 | 2.54.0
|
| 21 |
|