diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2024-04-12 17:03:28 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2024-04-12 17:16:28 +0200 |
commit | bbdb67eef64a5a8b628564b25bda0874ac6399ea (patch) | |
tree | 860395472a895c79b9e3ab71f9733d9b24b4814c /ksim/monitors | |
parent | d546951a0c00faeb3401353ef9fef231a328f40c (diff) | |
download | tdeutils-r14.1.2.tar.gz tdeutils-r14.1.2.zip |
Fix compatibility with C++17.r14.1.2
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 088e1f6880fb5f5645b0f1997ec8ae40a4a0bcbc)
Diffstat (limited to 'ksim/monitors')
-rw-r--r-- | ksim/monitors/snmp/pdu.cpp | 2 | ||||
-rw-r--r-- | ksim/monitors/snmp/walker.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ksim/monitors/snmp/pdu.cpp b/ksim/monitors/snmp/pdu.cpp index e06539a..9ad1110 100644 --- a/ksim/monitors/snmp/pdu.cpp +++ b/ksim/monitors/snmp/pdu.cpp @@ -48,7 +48,7 @@ PDU::~PDU() void PDU::addNullVariables( const IdentifierList &oids ) { std::for_each( oids.begin(), oids.end(), - std::bind1st( std::mem_fun( &PDU::addNullVariable ), this ) ); + std::bind( std::mem_fn( &PDU::addNullVariable ), this, std::placeholders::_1 ) ); } void PDU::addNullVariable( Identifier oid ) diff --git a/ksim/monitors/snmp/walker.cpp b/ksim/monitors/snmp/walker.cpp index 81a36f4..c74097b 100644 --- a/ksim/monitors/snmp/walker.cpp +++ b/ksim/monitors/snmp/walker.cpp @@ -29,7 +29,7 @@ using namespace KSim::Snmp; namespace { template <class T> - struct Deleter : public std::unary_function<T, void> + struct Deleter : public std::function<void(T)> { void operator()( T arg ) { delete arg; } |