diff options
| author | Martin Hořeňovský | 2025-11-09 11:19:44 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-12-01 10:42:43 +0100 |
| commit | 5e44382423585b99f33afd54c3c412c69ae2382f (patch) | |
| tree | bb99c3ad074893b070eefdc99334c26ac48146c4 /src | |
| parent | 985a3f44605bf3ee7bd4a0c6129ca69ec53a7ebe (diff) | |
| download | catch3-5e44382423585b99f33afd54c3c412c69ae2382f.tar.gz | |
Fix initialization of AtomicCounts for older standards
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/internal/catch_thread_support.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/catch2/internal/catch_thread_support.hpp b/src/catch2/internal/catch_thread_support.hpp index c15980b7..69e50c06 100644 --- a/src/catch2/internal/catch_thread_support.hpp +++ b/src/catch2/internal/catch_thread_support.hpp @@ -23,10 +23,10 @@ namespace Catch { using Mutex = std::mutex; using LockGuard = std::lock_guard<std::mutex>; struct AtomicCounts { - std::atomic<std::uint64_t> passed = 0; - std::atomic<std::uint64_t> failed = 0; - std::atomic<std::uint64_t> failedButOk = 0; - std::atomic<std::uint64_t> skipped = 0; + std::atomic<std::uint64_t> passed{ 0 }; + std::atomic<std::uint64_t> failed{ 0 }; + std::atomic<std::uint64_t> failedButOk{ 0 }; + std::atomic<std::uint64_t> skipped{ 0 }; }; #else // ^^ Use actual mutex, lock and atomics // vv Dummy implementations for single-thread performance |