mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Small cleanup for pluralise
This commit is contained in:
		@@ -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;
 | 
					 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user