From c2e1b31a7c5a948b6155bc9fcaee4defbf4504bd Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 17 Jan 2024 09:00:48 +0100 Subject: Switch project to C++17 --- src/MuxElements.cpp | 4 ++-- src/MuxElements.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp index 71ff270..215a56d 100644 --- a/src/MuxElements.cpp +++ b/src/MuxElements.cpp @@ -86,7 +86,7 @@ bool AnnouncementCluster::is_active() if (*m_deferred_start_time <= now) { m_active = true; - m_deferred_start_time = boost::none; + m_deferred_start_time.reset(); } } @@ -96,7 +96,7 @@ bool AnnouncementCluster::is_active() if (*m_deferred_stop_time <= now) { m_active = false; - m_deferred_stop_time = boost::none; + m_deferred_stop_time.reset(); } } diff --git a/src/MuxElements.h b/src/MuxElements.h index 1e9b707..9990415 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include "dabOutput/dabOutput.h" #include "input/inputs.h" @@ -150,10 +150,10 @@ class AnnouncementCluster : public RemoteControllable { private: mutable std::mutex m_active_mutex; bool m_active = false; - boost::optional< + std::optional< std::chrono::time_point< std::chrono::steady_clock> > m_deferred_start_time; - boost::optional< + std::optional< std::chrono::time_point< std::chrono::steady_clock> > m_deferred_stop_time; -- cgit v1.2.3