From 5e44382423585b99f33afd54c3c412c69ae2382f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 9 Nov 2025 11:19:44 +0100 Subject: [PATCH] Fix initialization of AtomicCounts for older standards --- src/catch2/internal/catch_thread_support.hpp | 8 ++++---- 1 file 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; struct AtomicCounts { - std::atomic passed = 0; - std::atomic failed = 0; - std::atomic failedButOk = 0; - std::atomic skipped = 0; + std::atomic passed{ 0 }; + std::atomic failed{ 0 }; + std::atomic failedButOk{ 0 }; + std::atomic skipped{ 0 }; }; #else // ^^ Use actual mutex, lock and atomics // vv Dummy implementations for single-thread performance