diff options
| author | Martin Hořeňovský | 2022-04-11 20:37:54 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-04-11 20:37:54 +0200 |
| commit | f25236ff430d98b3cba5495cc68235d1d7701b98 (patch) | |
| tree | 4b43ede4d580d532b8637589365ca9ecdd4b223c /src | |
| parent | 8cdaebe9643f77b2e62cde01df0176d15385b12c (diff) | |
| download | catch3-f25236ff430d98b3cba5495cc68235d1d7701b98.tar.gz | |
Small cleanup for pluralise
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/internal/catch_string_manip.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/catch2/internal/catch_string_manip.hpp b/src/catch2/internal/catch_string_manip.hpp index 8ef47e39..dc58a336 100644 --- a/src/catch2/internal/catch_string_manip.hpp +++ b/src/catch2/internal/catch_string_manip.hpp @@ -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; }; } |