mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
Small cleanup for pluralise
This commit is contained in:
parent
8cdaebe964
commit
f25236ff43
@ -43,16 +43,17 @@ namespace Catch {
|
||||
*
|
||||
* **Important:** The provided string must outlive the instance
|
||||
*/
|
||||
struct pluralise {
|
||||
pluralise(std::uint64_t count, StringRef label):
|
||||
class pluralise {
|
||||
std::uint64_t m_count;
|
||||
StringRef m_label;
|
||||
|
||||
public:
|
||||
constexpr pluralise(std::uint64_t count, StringRef label):
|
||||
m_count(count),
|
||||
m_label(label)
|
||||
{}
|
||||
|
||||
friend std::ostream& operator << ( std::ostream& os, pluralise const& pluraliser );
|
||||
|
||||
std::uint64_t m_count;
|
||||
StringRef m_label;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user