mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Add a way to change fallback stringifier
This allows reuse of projects existing stringification machinery Closes #1024
This commit is contained in:
		| @@ -88,7 +88,11 @@ namespace Catch { | ||||
|         static | ||||
|         typename std::enable_if<!::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type | ||||
|             convert( const Fake& value ) { | ||||
| #if !defined(CATCH_CONFIG_FALLBACK_STRINGIFIER) | ||||
|                 return Detail::convertUnstreamable( value ); | ||||
| #else | ||||
|                 return CATCH_CONFIG_FALLBACK_STRINGIFIER( value ); | ||||
| #endif | ||||
|         } | ||||
|     }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský