diff --git a/src/catch2/catch_config.cpp b/src/catch2/catch_config.cpp index 6d579af4..ea7ec3de 100644 --- a/src/catch2/catch_config.cpp +++ b/src/catch2/catch_config.cpp @@ -7,6 +7,7 @@ #include #include +#include #include 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 ; } diff --git a/src/catch2/catch_config.hpp b/src/catch2/catch_config.hpp index 85a7c84c..55fa5ed8 100644 --- a/src/catch2/catch_config.hpp +++ b/src/catch2/catch_config.hpp @@ -11,9 +11,6 @@ #include #include -// Libstdc++ doesn't like incomplete classes for unique_ptr -#include - #include #include #include @@ -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;