mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Remove SFINAE support for all unknown compilers
This commit is contained in:
parent
bd5910ef9f
commit
052dc18c76
@ -15,7 +15,7 @@
|
|||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
|
|
||||||
#if (__BORLANDC__ > 0x582 )
|
#if (__BORLANDC__ > 0x582 )
|
||||||
#define CATCH_SFINAE
|
//#define CATCH_SFINAE // Not confirmed
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // __BORLANDC__
|
#endif // __BORLANDC__
|
||||||
@ -25,7 +25,7 @@
|
|||||||
#ifdef __EDG_VERSION__
|
#ifdef __EDG_VERSION__
|
||||||
|
|
||||||
#if (__EDG_VERSION__ > 238 )
|
#if (__EDG_VERSION__ > 238 )
|
||||||
#define CATCH_SFINAE
|
//#define CATCH_SFINAE // Not confirmed
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // __EDG_VERSION__
|
#endif // __EDG_VERSION__
|
||||||
@ -35,7 +35,7 @@
|
|||||||
#ifdef __DMC__
|
#ifdef __DMC__
|
||||||
|
|
||||||
#if (__DMC__ > 0x840 )
|
#if (__DMC__ > 0x840 )
|
||||||
#define CATCH_SFINAE
|
//#define CATCH_SFINAE // Not confirmed
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // __DMC__
|
#endif // __DMC__
|
||||||
@ -64,7 +64,7 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#if (_MSC_VER >= 1310 ) // (VC++ 7.0+)
|
#if (_MSC_VER >= 1310 ) // (VC++ 7.0+)
|
||||||
#define CATCH_SFINAE
|
//#define CATCH_SFINAE // Not confirmed
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
@ -342,9 +342,11 @@ struct Awkward
|
|||||||
operator int() const { return 7; }
|
operator int() const { return 7; }
|
||||||
};
|
};
|
||||||
|
|
||||||
TEST_CASE( "non streamable", "" )
|
// This now works with GCC/ Clang usinh SFINAE
|
||||||
{
|
// Uncomment when it works on all compilers that are tested
|
||||||
Awkward awkward;
|
//TEST_CASE( "non streamable", "" )
|
||||||
std::string s = Catch::toString( awkward );
|
//{
|
||||||
REQUIRE( s == "7" ); // This is ambiguous without SFINAE
|
// Awkward awkward;
|
||||||
}
|
// std::string s = Catch::toString( awkward );
|
||||||
|
// REQUIRE( s == "7" ); // This is ambiguous without SFINAE
|
||||||
|
//}
|
||||||
|
Loading…
Reference in New Issue
Block a user