mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Fix non-default-constructible type lists used in TEMPLATE_LIST_TEST_CASE (#1697)
* Fix non-default-constructible type lists used in TEMPLATE_LIST_TEST_CASE std::tuple is not default constructible when the first type is not default-constuctible. Therefore it can not be instantiated. to circumvent this, we have to use std::declval in the unevaluate decltype context.
This commit is contained in:
		 Benjamin Worpitz
					Benjamin Worpitz
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							a22b7df46c
						
					
				
				
					commit
					e7c26f09d1
				
			| @@ -1380,6 +1380,6 @@ due to unexpected exception with message: | ||||
|   Why would you throw a std::string? | ||||
|  | ||||
| =============================================================================== | ||||
| test cases:  295 |  221 passed |  70 failed |  4 failed as expected | ||||
| assertions: 1550 | 1398 passed | 131 failed | 21 failed as expected | ||||
| test cases:  298 |  224 passed |  70 failed |  4 failed as expected | ||||
| assertions: 1553 | 1401 passed | 131 failed | 21 failed as expected | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user