mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 05:09:53 +01:00
Migrated ITestCase to std::shared_ptr
This commit is contained in:
parent
0844d6e867
commit
44cccde8b9
@ -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<ITestCase>;
|
||||
|
||||
class TestCase;
|
||||
struct IConfig;
|
||||
|
||||
|
@ -71,7 +71,7 @@ namespace Catch {
|
||||
bool operator < ( TestCase const& other ) const;
|
||||
|
||||
private:
|
||||
Ptr<ITestCase> test;
|
||||
std::shared_ptr<ITestCase> test;
|
||||
};
|
||||
|
||||
TestCase makeTestCase( ITestCase* testCase,
|
||||
|
Loading…
Reference in New Issue
Block a user