Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_uncaught_exceptions.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-10-06 11:07:53 +0200
committerMartin Hořeňovský2020-10-06 11:07:53 +0200
commite6f5e05ebcc46355fe737d8d747f8ed95edc99d1 (patch)
tree478fdca10120c5b629cea4b0afed82cb663e939a /include/internal/catch_uncaught_exceptions.cpp
parent44900d5371a7595cc43316725f00f7ff41bfc1b7 (diff)
downloadcatch3-e6f5e05ebcc46355fe737d8d747f8ed95edc99d1.tar.gz
Improve detection of std::uncaught_exceptions support
The problem was that Catch2 did not reliably include `<exception>` before it checked for the feature test macro for `std::uncaught_exceptions`. To avoid overhead of including `<exception>` everywhere, the configuration check was split out into a separate header. Closes #2021
Diffstat (limited to 'include/internal/catch_uncaught_exceptions.cpp')
-rw-r--r--include/internal/catch_uncaught_exceptions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/internal/catch_uncaught_exceptions.cpp b/include/internal/catch_uncaught_exceptions.cpp
index 22b1ed43..cbe7f941 100644
--- a/include/internal/catch_uncaught_exceptions.cpp
+++ b/include/internal/catch_uncaught_exceptions.cpp
@@ -8,6 +8,8 @@
#include "catch_compiler_capabilities.h"
#include "catch_uncaught_exceptions.h"
+#include "catch_config_uncaught_exceptions.hpp"
+
#include <exception>
namespace Catch {