aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-17 09:00:48 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-17 09:00:48 +0100
commitc2e1b31a7c5a948b6155bc9fcaee4defbf4504bd (patch)
treec084aa9db144f1fa75cd08f0b0bdc6b18397fd72 /src
parent36594dedc009dfaa799262a98f8e53fd55450139 (diff)
downloaddabmux-c2e1b31a7c5a948b6155bc9fcaee4defbf4504bd.tar.gz
dabmux-c2e1b31a7c5a948b6155bc9fcaee4defbf4504bd.tar.bz2
dabmux-c2e1b31a7c5a948b6155bc9fcaee4defbf4504bd.zip
Switch project to C++17
Diffstat (limited to 'src')
-rw-r--r--src/MuxElements.cpp4
-rw-r--r--src/MuxElements.h6
2 files changed, 5 insertions, 5 deletions
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 <exception>
#include <algorithm>
#include <chrono>
-#include <boost/optional.hpp>
+#include <optional>
#include <stdint.h>
#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;