Outline Config destructor to avoid including superfluous header

This commit is contained in:
Martin Hořeňovský 2020-02-02 14:43:26 +01:00
parent 66fe591477
commit 3b297cf9b5
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 5 additions and 4 deletions

View File

@ -7,6 +7,7 @@
#include <catch2/catch_config.hpp>
#include <catch2/catch_enforce.h>
#include <catch2/catch_stream.h>
#include <catch2/catch_stringref.h>
namespace Catch {
@ -36,6 +37,9 @@ namespace Catch {
m_testSpec = parser.testSpec();
}
Config::~Config() = default;
std::string const& Config::getFilename() const {
return m_data.outputFilename ;
}

View File

@ -11,9 +11,6 @@
#include <catch2/catch_test_spec_parser.h>
#include <catch2/catch_interfaces_config.h>
// Libstdc++ doesn't like incomplete classes for unique_ptr
#include <catch2/catch_stream.h>
#include <memory>
#include <vector>
#include <string>
@ -73,7 +70,7 @@ namespace Catch {
Config() = default;
Config( ConfigData const& data );
virtual ~Config() = default;
~Config() override; // = default in the cpp file
std::string const& getFilename() const;