From de7ba4e8897bbe56c612b980d02f249a92d0eada Mon Sep 17 00:00:00 2001 From: Sergei Iskakov Date: Wed, 15 Nov 2023 10:09:12 -0500 Subject: [PATCH] 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" --- src/catch2/benchmark/catch_optimizer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catch2/benchmark/catch_optimizer.hpp b/src/catch2/benchmark/catch_optimizer.hpp index 02cf2073..61e6571f 100644 --- a/src/catch2/benchmark/catch_optimizer.hpp +++ b/src/catch2/benchmark/catch_optimizer.hpp @@ -70,7 +70,7 @@ namespace Catch { template inline auto invoke_deoptimized(Fn&& fn, Args&&... args) -> std::enable_if_t::value> { - CATCH_FORWARD(fn) (CATCH_FORWARD(args)...); + CATCH_FORWARD((fn)) (CATCH_FORWARD(args)...); } } // namespace Benchmark } // namespace Catch