From 2770893183e22cfcc543d88e10144021f3df3fb5 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Fri, 14 Dec 2018 15:48:32 +0100
Subject: [PATCH] [BL] ConfigTree; Replace deprecated uncaught_excpt

The `bool uncaught_exception()' is deprecated since c++17
and is replaced by `int uncaught_exceptions()'.
---
 BaseLib/ConfigTree.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/BaseLib/ConfigTree.cpp b/BaseLib/ConfigTree.cpp
index 4afc7151c10..592e5d3178f 100644
--- a/BaseLib/ConfigTree.cpp
+++ b/BaseLib/ConfigTree.cpp
@@ -73,7 +73,8 @@ ConfigTree(ConfigTree && other)
 
 ConfigTree::~ConfigTree()
 {
-    if (std::uncaught_exception()) {
+    if (std::uncaught_exceptions() > 0)
+    {
         /* If the stack unwinds the check below shall be suppressed in order to
          * not accumulate false-positive configuration errors.
          */
-- 
GitLab