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
Remove last vestiges of shared ptr use with IConfig
- Commit
f2b95080815c873a64b76b8052472aa7a4fd6e9f- Author
- Martin Hořeňovský ·
- Parents
1d1ccf8f3c0c
Changes
src/catch2/interfaces/catch_interfaces_config.hpp | 3 --- src/catch2/internal/catch_context.hpp | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/catch2/interfaces/catch_interfaces_config.hpp b/src/catch2/interfaces/catch_interfaces_config.hpp index ca334326..0612eb83 100644 --- a/src/catch2/interfaces/catch_interfaces_config.hpp +++ b/src/catch2/interfaces/catch_interfaces_config.hpp @@ -14,7 +14,6 @@ #include <iosfwd> #include <string> #include <vector> -#include <memory> namespace Catch { @@ -83,8 +82,6 @@ namespace Catch { virtual unsigned int benchmarkResamples() const = 0; virtual std::chrono::milliseconds benchmarkWarmupTime() const = 0; }; - - using IConfigPtr = std::shared_ptr<IConfig const>; } #endif // TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED diff --git a/src/catch2/internal/catch_context.hpp b/src/catch2/internal/catch_context.hpp index 1f64d7f9..b52a2267 100644 --- a/src/catch2/internal/catch_context.hpp +++ b/src/catch2/internal/catch_context.hpp @@ -8,8 +8,6 @@ #ifndef TWOBLUECUBES_CATCH_CONTEXT_H_INCLUDED #define TWOBLUECUBES_CATCH_CONTEXT_H_INCLUDED -#include <memory> - namespace Catch { struct IResultCapture; @@ -17,8 +15,6 @@ namespace Catch { struct IConfig; struct IMutableContext; - using IConfigPtr = std::shared_ptr<IConfig const>; - struct IContext { virtual ~IContext();