From d6e97e3fdae77b19709e2c53680f35275e19c019 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 13 Jan 2022 06:18:43 +0100 Subject: [PATCH] SeedFileManager: initialize RUNNING with constinit --- seed_file_management.cpp | 2 +- seed_file_management.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/seed_file_management.cpp b/seed_file_management.cpp index 1c6bbce..240a4ff 100644 --- a/seed_file_management.cpp +++ b/seed_file_management.cpp @@ -13,7 +13,7 @@ #include namespace fortuna { -bool SeedFileManager::RUNNING{false}; +constinit bool SeedFileManager::RUNNING{false}; SeedFileManager::SeedFileManager( const fortuna::accumulator::Accumulator& accumulator) noexcept { diff --git a/seed_file_management.h b/seed_file_management.h index 1b38338..bfa85b9 100644 --- a/seed_file_management.h +++ b/seed_file_management.h @@ -33,7 +33,7 @@ protected: private: const conf config; - static bool RUNNING; + static constinit bool RUNNING; DoTask do_task; fortuna::accumulator::Accumulator accumulator;