diff --git a/src/catch2/internal/catch_enforce.hpp b/src/catch2/internal/catch_enforce.hpp index ddb6d845..171ea121 100644 --- a/src/catch2/internal/catch_enforce.hpp +++ b/src/catch2/internal/catch_enforce.hpp @@ -12,6 +12,8 @@ #include #include +#include // for `std::exception` in no-exception configuration + namespace Catch { #if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) template diff --git a/src/catch2/internal/catch_is_permutation.hpp b/src/catch2/internal/catch_is_permutation.hpp index 2bde03b8..ba7082da 100644 --- a/src/catch2/internal/catch_is_permutation.hpp +++ b/src/catch2/internal/catch_is_permutation.hpp @@ -9,6 +9,7 @@ #define CATCH_IS_PERMUTATION_HPP_INCLUDED #include +#include namespace Catch { namespace Detail { diff --git a/src/catch2/internal/catch_istream.hpp b/src/catch2/internal/catch_istream.hpp index e6b9a2d3..1247be33 100644 --- a/src/catch2/internal/catch_istream.hpp +++ b/src/catch2/internal/catch_istream.hpp @@ -12,8 +12,6 @@ #include #include -#include -#include #include namespace Catch { diff --git a/src/catch2/matchers/catch_matchers_contains.hpp b/src/catch2/matchers/catch_matchers_contains.hpp index 940fc225..90cfe641 100644 --- a/src/catch2/matchers/catch_matchers_contains.hpp +++ b/src/catch2/matchers/catch_matchers_contains.hpp @@ -12,6 +12,7 @@ #include #include +#include namespace Catch { namespace Matchers { diff --git a/src/catch2/matchers/catch_matchers_range_equals.hpp b/src/catch2/matchers/catch_matchers_range_equals.hpp index 4c3c1d0b..11a1f2ff 100644 --- a/src/catch2/matchers/catch_matchers_range_equals.hpp +++ b/src/catch2/matchers/catch_matchers_range_equals.hpp @@ -11,6 +11,8 @@ #include #include +#include + namespace Catch { namespace Matchers {