diff options
| author | Sergei Iskakov | 2023-11-15 10:09:12 -0500 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-11-16 12:33:35 +0100 |
| commit | de7ba4e8897bbe56c612b980d02f249a92d0eada (patch) | |
| tree | 23bbe4da5b4047788cda03b85c0c03831141da17 | |
| parent | 733b901dd26110039466c04a74633a5709a1229e (diff) | |
| download | catch3-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.hpp | 2 |
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 |