Constexprify NameAndTags constructor

This commit is contained in:
Martin Hořeňovský 2021-05-15 00:02:09 +02:00
parent 61e16416a9
commit 0c0f73a48d
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 3 additions and 3 deletions

View File

@ -46,9 +46,9 @@ Detail::unique_ptr<ITestInvoker> makeTestInvoker( void (C::*testAsMethod)() ) {
} }
struct NameAndTags { struct NameAndTags {
NameAndTags(StringRef name_ = StringRef(), constexpr NameAndTags( StringRef name_ = StringRef(),
StringRef tags_ = StringRef()) noexcept: StringRef tags_ = StringRef() ) noexcept:
name(name_), tags(tags_) {} name( name_ ), tags( tags_ ) {}
StringRef name; StringRef name;
StringRef tags; StringRef tags;
}; };