mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 22:05:39 +02:00
Store IStream instance owning ptrs in reporter instances
This ended up being a surprisingly large refactoring, motivated by removing a `const_cast` from `Config`'s handling of reporter streams, forced by previous commit.
This commit is contained in:
@@ -20,12 +20,13 @@
|
||||
#include <catch2/reporters/catch_reporter_registrars.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <utility>
|
||||
|
||||
class CumulativeBenchmarkReporter final : public Catch::CumulativeReporterBase {
|
||||
|
||||
public:
|
||||
CumulativeBenchmarkReporter(Catch::ReporterConfig const& _config) :
|
||||
CumulativeReporterBase(_config) {
|
||||
CumulativeBenchmarkReporter(Catch::ReporterConfig&& _config) :
|
||||
CumulativeReporterBase(std::move(_config)) {
|
||||
m_preferences.shouldReportAllAssertions = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user