summaryrefslogtreecommitdiff
path: root/algparam.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-08-06 06:40:16 -0400
committerJeffrey Walton <noloader@gmail.com>2020-08-06 06:40:16 -0400
commitfdb977a2c691f87903f4db4c25882b4c95bea406 (patch)
tree7cfaa91b7fc8b5b2b1cd42940c0f945083b85ca0 /algparam.h
parent36c9ecd66dafaac43ca0622a3f5e52dae05ec956 (diff)
downloadcryptopp-git-fdb977a2c691f87903f4db4c25882b4c95bea406.tar.gz
Add C++11 auto feature detection
Diffstat (limited to 'algparam.h')
-rw-r--r--algparam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/algparam.h b/algparam.h
index 911cef79..f904c4f9 100644
--- a/algparam.h
+++ b/algparam.h
@@ -315,7 +315,7 @@ public:
#if defined(CRYPTOPP_CXX17_UNCAUGHT_EXCEPTIONS)
if (std::uncaught_exceptions() == 0)
-#elif defined(CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE)
+#elif defined(CRYPTOPP_CXX98_UNCAUGHT_EXCEPTION)
if (std::uncaught_exception() == false)
#else
try
@@ -324,7 +324,7 @@ public:
if (m_throwIfNotUsed && !m_used)
throw ParameterNotUsed(m_name);
}
-#if !defined(CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE)
+#if !defined(CRYPTOPP_CXX98_UNCAUGHT_EXCEPTION)
# if !defined(CRYPTOPP_CXX17_UNCAUGHT_EXCEPTIONS)
catch(const Exception&)
{