mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-29 16:53:30 +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
|
* **Important:** The provided string must outlive the instance
|
||||||
*/
|
*/
|
||||||
struct pluralise {
|
class pluralise {
|
||||||
pluralise(std::uint64_t count, StringRef label):
|
std::uint64_t m_count;
|
||||||
|
StringRef m_label;
|
||||||
|
|
||||||
|
public:
|
||||||
|
constexpr pluralise(std::uint64_t count, StringRef label):
|
||||||
m_count(count),
|
m_count(count),
|
||||||
m_label(label)
|
m_label(label)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
friend std::ostream& operator << ( std::ostream& os, pluralise const& pluraliser );
|
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