From d935dfb7a59c2b392d74f70c7c6a45ca3294626b Mon Sep 17 00:00:00 2001 From: Florian Schmaus <flow@cs.fau.de> Date: Tue, 12 Jan 2021 09:32:15 +0100 Subject: [PATCH] [Runtime] Add missing constexpr Suggested-by: Florian Fischer <florian.fl.fischer@fau.de> --- emper/Runtime.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emper/Runtime.hpp b/emper/Runtime.hpp index 726aa519..b4a51435 100644 --- a/emper/Runtime.hpp +++ b/emper/Runtime.hpp @@ -90,7 +90,7 @@ class Runtime : public Logger<LogSubsystem::RUNTI> { if constexpr (emper::WORKER_WAKEUP_STRATEGY == emper::WorkerWakeupStrategy::all) { sleepingWorkers.store(0, std::memory_order_relaxed); workerSleepConditionVariable.notify_all(); - } else if (emper::WORKER_WAKEUP_STRATEGY == emper::WorkerWakeupStrategy::one) { + } else if constexpr (emper::WORKER_WAKEUP_STRATEGY == emper::WorkerWakeupStrategy::one) { sleepingWorkers.fetch_sub(1, std::memory_order_relaxed); workerSleepConditionVariable.notify_one(); } else { -- GitLab