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:
Sergei Iskakov 2023-11-15 10:09:12 -05:00 committed by Martin Hořeňovský
parent 733b901dd2
commit de7ba4e889
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace Catch {
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> {
CATCH_FORWARD(fn) (CATCH_FORWARD(args)...);
CATCH_FORWARD((fn)) (CATCH_FORWARD(args)...);
}
} // namespace Benchmark
} // namespace Catch