mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Complete disable CATCH_SFINAE for now
This commit is contained in:
		@@ -52,7 +52,7 @@
 | 
			
		||||
 | 
			
		||||
#elif __GNUC__ >= 3
 | 
			
		||||
 | 
			
		||||
#define CATCH_SFINAE
 | 
			
		||||
// #define CATCH_SFINAE // Taking this out completely for now
 | 
			
		||||
 | 
			
		||||
#endif // __GNUC__ < 3
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,9 @@
 | 
			
		||||
namespace Catch {
 | 
			
		||||
namespace Detail {
 | 
			
		||||
 | 
			
		||||
// SFINAE is currently disabled by default for all compilers.
 | 
			
		||||
// If the non SFINAE version of IsStreamInsertable is ambiguous for you
 | 
			
		||||
// and your compiler supports SFINAE, try #defining CATCH_SFINAE
 | 
			
		||||
#ifdef CATCH_SFINAE
 | 
			
		||||
 | 
			
		||||
    template<typename T>
 | 
			
		||||
@@ -81,7 +84,6 @@ template<typename T>
 | 
			
		||||
struct StringMaker :
 | 
			
		||||
    Detail::StringMakerBase<Detail::IsStreamInsertable<T>::value> {};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
template<typename T>
 | 
			
		||||
struct StringMaker<T*> {
 | 
			
		||||
    static std::string convert( T const* p ) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user