Skip to content

Commit

Permalink
Need to explicitly reference placeholder namespace with latest gcc
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Flynn <tom.flynn@gmail.com>
  • Loading branch information
tomflynn committed Apr 23, 2021
1 parent 76b4827 commit 6a6e2c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agent-ovs/ovs/DnsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace opflexagent {
lock_guard<recursive_mutex> lk(timerMutex);
expiryTimer.reset( new boost::asio::deadline_timer(io_ctxt));
expiryTimer->expires_from_now(boost::posix_time::seconds(1));
expiryTimer->async_wait(boost::bind(&DnsManager::onExpiryTimer,this,_1));
expiryTimer->async_wait(boost::bind(&DnsManager::onExpiryTimer,this,boost::placeholders::_1));
}
parserThread.reset(new std::thread([this]() {
started = true;
Expand Down Expand Up @@ -195,7 +195,7 @@ namespace opflexagent {
}
lock_guard<recursive_mutex> lk(timerMutex);
expiryTimer->expires_from_now(seconds(1));
expiryTimer->async_wait(boost::bind(&DnsManager::onExpiryTimer,this,_1));
expiryTimer->async_wait(boost::bind(&DnsManager::onExpiryTimer,this,boost::placeholders::_1));
}

bool DnsCacheEntry::update(DnsRR &dnsRR) {
Expand Down Expand Up @@ -995,7 +995,7 @@ namespace opflexagent {
switch(class_id) {
case modelgbp::epdr::DnsAsk::CLASS_ID:
{
func = boost::bind(&DnsManager::handleDnsAsk,this,_1,_2);
func = boost::bind(&DnsManager::handleDnsAsk,this,boost::placeholders::_1,boost::placeholders::_2);
break;
}
}
Expand Down

0 comments on commit 6a6e2c3

Please sign in to comment.