diff --git a/include/internal/catch_test_registry.cpp b/include/internal/catch_test_registry.cpp index 382ede30..eccbdb3a 100644 --- a/include/internal/catch_test_registry.cpp +++ b/include/internal/catch_test_registry.cpp @@ -16,8 +16,6 @@ namespace Catch { return new(std::nothrow) TestInvokerAsFunction( testAsFunction ); } - NameAndTags::NameAndTags( StringRef const& name_ , StringRef const& tags_ ) noexcept : name( name_ ), tags( tags_ ) {} - AutoReg::AutoReg( ITestInvoker* invoker, SourceLineInfo const& lineInfo, StringRef const& classOrMethod, NameAndTags const& nameAndTags ) noexcept { CATCH_TRY { getMutableRegistryHub() diff --git a/include/internal/catch_test_registry.h b/include/internal/catch_test_registry.h index 0701e17f..46dc8166 100644 --- a/include/internal/catch_test_registry.h +++ b/include/internal/catch_test_registry.h @@ -37,7 +37,9 @@ auto makeTestInvoker( void (C::*testAsMethod)() ) noexcept -> ITestInvoker* { } struct NameAndTags { - NameAndTags( StringRef const& name_ = StringRef(), StringRef const& tags_ = StringRef() ) noexcept; + NameAndTags(StringRef const& name_ = StringRef(), + StringRef const& tags_ = StringRef()) noexcept: + name(name_), tags(tags_) {} StringRef name; StringRef tags; };