diff --git a/include/internal/catch_interfaces_testcase.h b/include/internal/catch_interfaces_testcase.h index a1052b71..0c759166 100644 --- a/include/internal/catch_interfaces_testcase.h +++ b/include/internal/catch_interfaces_testcase.h @@ -16,12 +16,13 @@ namespace Catch { class TestSpec; - struct ITestCase : IShared { + struct ITestCase { virtual void invoke () const = 0; - protected: virtual ~ITestCase(); }; + using ITestCasePtr = std::shared_ptr; + class TestCase; struct IConfig; diff --git a/include/internal/catch_test_case_info.h b/include/internal/catch_test_case_info.h index 08519c5c..ac83cb3f 100644 --- a/include/internal/catch_test_case_info.h +++ b/include/internal/catch_test_case_info.h @@ -71,7 +71,7 @@ namespace Catch { bool operator < ( TestCase const& other ) const; private: - Ptr test; + std::shared_ptr test; }; TestCase makeTestCase( ITestCase* testCase,