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

Fix C++11 dependency in TAP reporter

Commit
72b72ca9379e7d6fa465efcdec67994a61778046
Author
Martin Hořeňovský ·
Parents
a8a6b3159d84

Files · Download .tar.gz

Changes

 include/reporters/catch_reporter_tap.hpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/reporters/catch_reporter_tap.hpp b/include/reporters/catch_reporter_tap.hpp
index a82d779f..16e8a7fe 100644
--- a/include/reporters/catch_reporter_tap.hpp
+++ b/include/reporters/catch_reporter_tap.hpp
@@ -22,7 +22,8 @@ namespace Catch {
     struct TAPReporter : StreamingReporterBase {
 
         TAPReporter( ReporterConfig const& _config )
-        : StreamingReporterBase( _config )
+        : StreamingReporterBase( _config ),
+          counter(0)
         {}
 
         virtual ~TAPReporter();
@@ -70,7 +71,7 @@ namespace Catch {
         }
 
     private:
-        size_t counter = 0;
+        size_t counter;
         class AssertionPrinter {
             void operator= ( AssertionPrinter const& );
         public: