Skip to content

Commit de7ba4e

Browse files
iskakoffhorenmar
authored andcommitted
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"
1 parent 733b901 commit de7ba4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/catch2/benchmark/catch_optimizer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace Catch {
7070

7171
template <typename Fn, typename... Args>
7272
inline auto invoke_deoptimized(Fn&& fn, Args&&... args) -> std::enable_if_t<std::is_same<void, decltype(fn(args...))>::value> {
73-
CATCH_FORWARD(fn) (CATCH_FORWARD(args)...);
73+
CATCH_FORWARD((fn)) (CATCH_FORWARD(args)...);
7474
}
7575
} // namespace Benchmark
7676
} // namespace Catch

0 commit comments

Comments
 (0)