Skip to content

Commit

Permalink
Core: Fixed compatibility with old gcc versions (#1140)
Browse files Browse the repository at this point in the history
This commit compiles with gcc 5.4 dating back to 2016, which should only be C++14 capable (No C++17 / C++20)
  • Loading branch information
FlorianReimold committed Jul 17, 2023
1 parent 1137abf commit 5fbf005
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ecal/core/src/mon/ecal_monitoring_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace eCAL
m_host_name = Process::GetHostName();

// utilize registration receiver to enrich monitor information
g_registration_receiver()->SetCustomApplySampleCallback([this](const auto& ecal_sample_){ApplySample(ecal_sample_, eCAL::pb::tl_none);});
g_registration_receiver()->SetCustomApplySampleCallback([this](const auto& ecal_sample_){this->ApplySample(ecal_sample_, eCAL::pb::tl_none);});

// start logging receive thread
const CLoggingReceiveThread::LogMessageCallbackT logmsg_cb = std::bind(&CMonitoringImpl::RegisterLogMessage, this, std::placeholders::_1);
Expand Down
2 changes: 2 additions & 0 deletions ecal/core/src/pubsub/ecal_subgate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* @brief eCAL subscriber gateway class
**/

#include <algorithm>

#include <ecal/ecal.h>

#ifdef ECAL_OS_LINUX
Expand Down
1 change: 1 addition & 0 deletions ecal/core/src/readwrite/ecal_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <sstream>
#include <iostream>
#include <utility>
#include <algorithm>

namespace eCAL
{
Expand Down

0 comments on commit 5fbf005

Please sign in to comment.