Small cleanup for pluralise

This commit is contained in:
Martin Hořeňovský 2022-04-11 20:37:54 +02:00
parent 8cdaebe964
commit f25236ff43
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 6 additions and 5 deletions

View File

@ -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;
};
}