1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

std::uncaught_exception() -> std::uncaught_exceptions()

The former is deprecated in C++17. Fixes a clang warning.
This commit is contained in:
Eelco Dolstra 2019-09-13 20:05:27 +02:00
parent cf4c31c872
commit 6b83174fff
3 changed files with 3 additions and 3 deletions

View file

@ -1169,7 +1169,7 @@ void _interrupted()
/* Block user interrupts while an exception is being handled.
Throwing an exception while another exception is being handled
kills the program! */
if (!interruptThrown && !std::uncaught_exception()) {
if (!interruptThrown && !std::uncaught_exceptions()) {
interruptThrown = true;
throw Interrupted("interrupted by the user");
}