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

View File

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