mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Constexprify NameAndTags constructor
This commit is contained in:
parent
61e16416a9
commit
0c0f73a48d
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user