[proxy,modules] fix c++ 11 compatibility
This commit is contained in:
parent
c7f7f38367
commit
764936fe64
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user