[proxy,modules] fix c++ 11 compatibility

This commit is contained in:
akallabeth 2023-07-04 11:55:41 +02:00 committed by Martin Fleisz
parent c7f7f38367
commit 764936fe64
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -87,7 +87,7 @@ class ChannelData
bool add(const std::string& name, bool back)
{
std::lock_guard guard(_mux);
std::lock_guard<std::mutex> 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<std::mutex> guard(_mux);
auto& atom = _map[name];
auto count = atom++;
auto path = filepath(name, back, count);