Fix issue #1237
* Make the conversion operator SFINAE correct. * Workaround a GCC bug with some traits in type_traits.hpp The first bullet-point implies that every `get`/`get_ptr` be SFINAE correct as well.
This commit is contained in:
		
							parent
							
								
									e4bc98d036
								
							
						
					
					
						commit
						4e52277b70
					
				
					 4 changed files with 146 additions and 168 deletions
				
			
		| 
						 | 
				
			
			@ -811,3 +811,9 @@ TEST_CASE("Issue #924")
 | 
			
		|||
    CHECK_NOTHROW(j.get<Evil>());
 | 
			
		||||
    CHECK_NOTHROW(j.get<std::vector<Evil>>());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST_CASE("Issue #1237")
 | 
			
		||||
{
 | 
			
		||||
    struct non_convertible_type {};
 | 
			
		||||
    static_assert(not std::is_convertible<json, non_convertible_type>::value, "");
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue