diff options
| author | Chris Thrasher | 2023-12-28 16:39:19 -0600 |
|---|---|---|
| committer | Chris Thrasher | 2023-12-30 18:56:54 -0700 |
| commit | a5245ac76b18beae4a5b6ed62bbf4ae0194b457c (patch) | |
| tree | 306b4c0ea51ca9661a391756d1243236e3b21fca /src/catch2/internal/catch_test_case_registry_impl.hpp | |
| parent | b7b71ffd3a2a659412357964e91ee7db954e28df (diff) | |
| download | catch3-remove_redundant_destructors.tar.gz | |
Remove redundant destructorsremove_redundant_destructors
Classes will automatically inherit the virtual-ness of their base
class destructors. If the base class already has a virtual
destructor and the derived class needs default destructor semantics
then the derived class can omit defining the destructor in favor of
the compiler automatically defining it.
This has an additional benefit of reenabling move semantics. The
presence of a user-specified destructor automatically disables move
operations.
Diffstat (limited to 'src/catch2/internal/catch_test_case_registry_impl.hpp')
| -rw-r--r-- | src/catch2/internal/catch_test_case_registry_impl.hpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_test_case_registry_impl.hpp b/src/catch2/internal/catch_test_case_registry_impl.hpp index a4a27ed1..99a38498 100644 --- a/src/catch2/internal/catch_test_case_registry_impl.hpp +++ b/src/catch2/internal/catch_test_case_registry_impl.hpp @@ -30,8 +30,6 @@ namespace Catch { class TestRegistry : public ITestCaseRegistry { public: - ~TestRegistry() override = default; - void registerTest( Detail::unique_ptr<TestCaseInfo> testInfo, Detail::unique_ptr<ITestInvoker> testInvoker ); std::vector<TestCaseInfo*> const& getAllInfos() const override; |