mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Remove SFINAE support for all unknown compilers
This commit is contained in:
@@ -342,9 +342,11 @@ struct Awkward
|
||||
operator int() const { return 7; }
|
||||
};
|
||||
|
||||
TEST_CASE( "non streamable", "" )
|
||||
{
|
||||
Awkward awkward;
|
||||
std::string s = Catch::toString( awkward );
|
||||
REQUIRE( s == "7" ); // This is ambiguous without SFINAE
|
||||
}
|
||||
// This now works with GCC/ Clang usinh SFINAE
|
||||
// Uncomment when it works on all compilers that are tested
|
||||
//TEST_CASE( "non streamable", "" )
|
||||
//{
|
||||
// Awkward awkward;
|
||||
// std::string s = Catch::toString( awkward );
|
||||
// REQUIRE( s == "7" ); // This is ambiguous without SFINAE
|
||||
//}
|
||||
|
Reference in New Issue
Block a user