aboutsummaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-08-17 12:01:41 +0200
committerEddy Pedroni <epedroni@pm.me>2025-08-17 12:01:41 +0200
commit614bb91634fe093c5e86a5a9f98d310be25257d6 (patch)
tree273f5aeb13cf2580406493279d9247820e44b01d /daemon
parentc4a0bc0f82d7e774ab4f76bb019d588776cd40f1 (diff)
Downgrade to C++20
Diffstat (limited to 'daemon')
-rw-r--r--daemon/Makefile2
-rw-r--r--daemon/src/connection_manager.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/daemon/Makefile b/daemon/Makefile
index c42a690..9bda3d2 100644
--- a/daemon/Makefile
+++ b/daemon/Makefile
@@ -23,7 +23,7 @@ INC_FLAGS := $(addprefix -I,$(INC_DIRS))
# The -MMD and -MP flags together generate Makefiles for us!
# These files will have .d instead of .o as the output.
-CPPFLAGS := -O3 -std=c++23 $(INC_FLAGS) -MMD -MP
+CPPFLAGS := -O3 -std=c++20 $(INC_FLAGS) -MMD -MP
LDFLAGS := -lrtmidi -lcurl -ludev
diff --git a/daemon/src/connection_manager.cpp b/daemon/src/connection_manager.cpp
index 88f6659..7467e4e 100644
--- a/daemon/src/connection_manager.cpp
+++ b/daemon/src/connection_manager.cpp
@@ -93,7 +93,7 @@ Connection_Manager::refresh_devices([[maybe_unused]] bool add, [[maybe_unused]]
bool attached = false;
for (auto const & [port, name] : port_map)
{
- attached |= name.contains(device->device_name);
+ attached |= (name.find(device->device_name) != name.npos);
if (attached)
{
device->connect(port);