mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Enabled previous commit under MSVC, introduced new feature toggle
This commit is contained in:
		| @@ -143,7 +143,7 @@ TEST_CASE( "Approximate PI", "[Approx][PI]" ) | ||||
|  | ||||
| //////////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
| #if defined(CATCH_CPP11_OR_GREATER) | ||||
| #if defined(CATCH_CONFIG_CPP11_TYPE_TRAITS) | ||||
| class StrongDoubleTypedef | ||||
| { | ||||
|   double d_ = 0.0; | ||||
| @@ -153,6 +153,10 @@ class StrongDoubleTypedef | ||||
|     explicit operator double() const { return d_; } | ||||
| }; | ||||
|  | ||||
| inline std::ostream& operator<<( std::ostream& os, StrongDoubleTypedef td ) { | ||||
|     return os << "StrongDoubleTypedef(" << static_cast<double>(td) << ")"; | ||||
| } | ||||
|  | ||||
| TEST_CASE | ||||
| ( | ||||
|  "Comparison with explicitly convertible types", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský