Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Cleanup stdlib includes in reporter_bases.hpp

Commit
eaf7113fd3c96cf5e88858508dd539d8c0fd73c2
Author
Martin Hořeňovský ·
Parents
d090074da7da

Files · Download .tar.gz

Changes

 src/catch2/reporters/catch_reporter_bases.cpp | 1 +
 src/catch2/reporters/catch_reporter_bases.hpp | 9 +++------
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/catch2/reporters/catch_reporter_bases.cpp b/src/catch2/reporters/catch_reporter_bases.cpp
index 3fcd9bfb..49b582c3 100644
--- a/src/catch2/reporters/catch_reporter_bases.cpp
+++ b/src/catch2/reporters/catch_reporter_bases.cpp
@@ -12,6 +12,7 @@
 #include <catch2/internal/catch_stream.hpp>
 #include <catch2/catch_config.hpp>
 
+#include <algorithm>
 #include <cstring>
 #include <cfloat>
 #include <cstdio>
diff --git a/src/catch2/reporters/catch_reporter_bases.hpp b/src/catch2/reporters/catch_reporter_bases.hpp
index d51d9702..165dd2b4 100644
--- a/src/catch2/reporters/catch_reporter_bases.hpp
+++ b/src/catch2/reporters/catch_reporter_bases.hpp
@@ -10,13 +10,10 @@
 
 #include <catch2/interfaces/catch_interfaces_reporter.hpp>
 
-#include <algorithm>
-#include <cstring>
-#include <cfloat>
-#include <cstdio>
-#include <cassert>
-#include <memory>
 #include <iosfwd>
+#include <memory>
+#include <string>
+#include <vector>
 
 namespace Catch {
     // Returns double formatted as %.3f (format expected on output)