Skip to content

Commit

Permalink
Small cleanup for pluralise
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Apr 11, 2022
1 parent 8cdaebe commit f25236f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/catch2/internal/catch_string_manip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

Expand Down

0 comments on commit f25236f

Please sign in to comment.