Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergei Iskakov2023-11-15 10:09:12 -0500
committerMartin Hořeňovský2023-11-16 12:33:35 +0100
commitde7ba4e8897bbe56c612b980d02f249a92d0eada (patch)
tree23bbe4da5b4047788cda03b85c0c03831141da17
parent733b901dd26110039466c04a74633a5709a1229e (diff)
downloadcatch3-de7ba4e8897bbe56c612b980d02f249a92d0eada.tar.gz
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"
-rw-r--r--src/catch2/benchmark/catch_optimizer.hpp2
1 files changed, 1 insertions, 1 deletions
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 <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