Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-04-11 20:37:54 +0200
committerMartin Hořeňovský2022-04-11 20:37:54 +0200
commitf25236ff430d98b3cba5495cc68235d1d7701b98 (patch)
tree4b43ede4d580d532b8637589365ca9ecdd4b223c /src/catch2/internal
parent8cdaebe9643f77b2e62cde01df0176d15385b12c (diff)
downloadcatch3-f25236ff430d98b3cba5495cc68235d1d7701b98.tar.gz
Small cleanup for pluralise
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_string_manip.hpp11
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;
};
}