catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Workaround AppleClang bug by renaming TestHasher constructor argument
- Commit
7c75ecaef441e951a1b9240c5400e2947f190d48- Author
- Martin Hořeňovský ·
- Parents
fba0feeba1e3
Changes
include/internal/catch_test_case_registry_impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/internal/catch_test_case_registry_impl.cpp b/include/internal/catch_test_case_registry_impl.cpp index 065f70bd..b337ee3e 100644 --- a/include/internal/catch_test_case_registry_impl.cpp +++ b/include/internal/catch_test_case_registry_impl.cpp @@ -22,10 +22,10 @@ namespace Catch { namespace { struct TestHasher { - explicit TestHasher(Catch::SimplePcg32& rng) { - basis = rng(); + explicit TestHasher(Catch::SimplePcg32& rng_instance) { + basis = rng_instance(); basis <<= 32; - basis |= rng(); + basis |= rng_instance(); } uint64_t basis;