Explicitly outline TestRegistry destructor into .cpp file

This fixes compilation issue with C++23 mode against libstdc++.

Closes #2852
This commit is contained in:
Martin Hořeňovský
2024-04-08 13:57:59 +02:00
parent 05fb437cbb
commit cd8f97e6c7
2 changed files with 4 additions and 0 deletions
@@ -123,6 +123,8 @@ namespace Catch {
return getRegistryHub().getTestCaseRegistry().getAllTestsSorted( config );
}
TestRegistry::~TestRegistry() = default;
void TestRegistry::registerTest(Detail::unique_ptr<TestCaseInfo> testInfo, Detail::unique_ptr<ITestInvoker> testInvoker) {
m_handles.emplace_back(testInfo.get(), testInvoker.get());
m_viewed_test_infos.push_back(testInfo.get());