Skip to content

Commit 2f3634d

Browse files
committed
In Throw, change terminate to exit
1 parent fb26c8c commit 2f3634d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cpp2util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ constexpr auto type_name() -> std::string_view {
13281328
err += std::string{" and the message \""} + msg + "\"";
13291329
}
13301330
type_safety.report_violation( err.c_str() );
1331-
std::terminate();
1331+
std::exit(EXIT_FAILURE);
13321332
#else
13331333
throw CPP2_FORWARD(x);
13341334
#endif

0 commit comments

Comments
 (0)