Skip to content

Commit 8c80834

Browse files
committed
Use noexcept specifier to terminate instead of std::terminate()
1 parent d4742ea commit 8c80834

File tree

1 file changed

+1
-1
lines changed
  • src/mongocxx/options/private

1 file changed

+1
-1
lines changed

src/mongocxx/options/private/apm.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void exception_guard(const char* source, Fn fn) noexcept {
3737
} catch (...) {
3838
std::cerr << "fatal error: APM callback " << source << " exited via an exception"
3939
<< std::endl;
40-
std::terminate();
40+
throw;
4141
}
4242
}
4343

0 commit comments

Comments
 (0)