mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Added toString overload for chars
(and, by extension, Obj-C's BOOL)
This commit is contained in:
		| @@ -115,6 +115,16 @@ inline std::string toString( bool value ) { | ||||
|     return value ? "true" : "false"; | ||||
| } | ||||
|  | ||||
| inline std::string toString( char value ) { | ||||
|     return value < ' ' | ||||
|         ? toString( (unsigned int)value ) | ||||
|         : Detail::makeString( value ); | ||||
| } | ||||
|  | ||||
| inline std::string toString( signed char value ) { | ||||
|     return toString( static_cast<char>( value ) ); | ||||
| } | ||||
|  | ||||
| #ifdef CATCH_CONFIG_CPP11_NULLPTR | ||||
| inline std::string toString( std::nullptr_t ) { | ||||
|     return "nullptr"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash