diff --git a/server/proxy/modules/dyn-channel-dump/CMakeLists.txt b/server/proxy/modules/dyn-channel-dump/CMakeLists.txt index 63671ac4c..ab5a73264 100644 --- a/server/proxy/modules/dyn-channel-dump/CMakeLists.txt +++ b/server/proxy/modules/dyn-channel-dump/CMakeLists.txt @@ -28,7 +28,7 @@ if (supported) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) endif() -set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) add_library(${PROJECT_NAME} MODULE diff --git a/server/proxy/modules/dyn-channel-dump/dyn-channel-dump.cpp b/server/proxy/modules/dyn-channel-dump/dyn-channel-dump.cpp index 50adae96c..a56afe077 100644 --- a/server/proxy/modules/dyn-channel-dump/dyn-channel-dump.cpp +++ b/server/proxy/modules/dyn-channel-dump/dyn-channel-dump.cpp @@ -87,7 +87,7 @@ class ChannelData bool add(const std::string& name, bool back) { - std::lock_guard guard(_mux); + std::lock_guard guard(_mux); if (_map.find(name) == _map.end()) { WLog_INFO(TAG, "adding '%s' to dump list", name.c_str()); @@ -98,7 +98,7 @@ class ChannelData std::ofstream stream(const std::string& name, bool back) { - std::lock_guard guard(_mux); + std::lock_guard guard(_mux); auto& atom = _map[name]; auto count = atom++; auto path = filepath(name, back, count);