Skip to content

Commit 954f5db

Browse files
authored
Fix error: ‘terminate’ is not a member of ‘std’ for C++11 & C++14 (#88, thanks @viordash)
1 parent f2c2ebd commit 954f5db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/nonstd/span.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,8 @@ span_DISABLE_MSVC_WARNINGS( 26439 26440 26472 26473 26481 26490 )
494494

495495
#if ! span_CONFIG( NO_EXCEPTIONS )
496496
# include <stdexcept>
497+
#elif ! span_CONFIG_CONTRACT_VIOLATION_THROWS_V
498+
# include <exception>
497499
#endif
498500

499501
// Contract violation

0 commit comments

Comments
 (0)