mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	fn need to be in parenthesis
Otherwise intel c++ 19.1 cause an error "expression preceding parentheses of apparent call must have (pointer-to-) function type CATCH2"
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							733b901dd2
						
					
				
				
					commit
					de7ba4e889
				
			@@ -70,7 +70,7 @@ namespace Catch {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        template <typename Fn, typename... Args>
 | 
					        template <typename Fn, typename... Args>
 | 
				
			||||||
        inline auto invoke_deoptimized(Fn&& fn, Args&&... args) -> std::enable_if_t<std::is_same<void, decltype(fn(args...))>::value> {
 | 
					        inline auto invoke_deoptimized(Fn&& fn, Args&&... args) -> std::enable_if_t<std::is_same<void, decltype(fn(args...))>::value> {
 | 
				
			||||||
            CATCH_FORWARD(fn) (CATCH_FORWARD(args)...);
 | 
					            CATCH_FORWARD((fn)) (CATCH_FORWARD(args)...);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    } // namespace Benchmark
 | 
					    } // namespace Benchmark
 | 
				
			||||||
} // namespace Catch
 | 
					} // namespace Catch
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user