src: Remove unnecessary uses of boost::cref in make_shared and replace boost::cref/boost::ref with just cref/ref
In some cases, due to argument-dependent lookup, it is necessary to use
ndn::ref, instead of just ref.
Change-Id: I682180a007609535855f77511b49622154ad4f11
Refs: #1591
diff --git a/daemon/main.cpp b/daemon/main.cpp
index fdf14b5..697b65b 100644
--- a/daemon/main.cpp
+++ b/daemon/main.cpp
@@ -107,19 +107,19 @@
{
m_internalFace = make_shared<InternalFace>();
- m_fibManager = make_shared<FibManager>(boost::ref(m_forwarder->getFib()),
+ m_fibManager = make_shared<FibManager>(ref(m_forwarder->getFib()),
bind(&Forwarder::getFace, m_forwarder.get(), _1),
m_internalFace);
- m_faceManager = make_shared<FaceManager>(boost::ref(m_forwarder->getFaceTable()),
+ m_faceManager = make_shared<FaceManager>(ref(m_forwarder->getFaceTable()),
m_internalFace);
m_strategyChoiceManager =
- make_shared<StrategyChoiceManager>(boost::ref(m_forwarder->getStrategyChoice()),
+ make_shared<StrategyChoiceManager>(ref(m_forwarder->getStrategyChoice()),
m_internalFace);
m_statusServer = make_shared<StatusServer>(m_internalFace,
- boost::ref(*m_forwarder));
+ ref(*m_forwarder));
ConfigFile config((IgnoreRibAndLogSections()));
@@ -232,8 +232,7 @@
else
{
/// \todo May be try to reload config file (at least security section)
- signalSet.async_wait(bind(&Nfd::terminate, this, _1, _2,
- boost::ref(signalSet)));
+ signalSet.async_wait(bind(&Nfd::terminate, this, _1, _2, ref(signalSet)));
}
}
@@ -312,8 +311,7 @@
signalSet.add(SIGHUP);
signalSet.add(SIGUSR1);
signalSet.add(SIGUSR2);
- signalSet.async_wait(bind(&Nfd::terminate, &nfdInstance, _1, _2,
- boost::ref(signalSet)));
+ signalSet.async_wait(bind(&Nfd::terminate, &nfdInstance, _1, _2, ref(signalSet)));
try {
getGlobalIoService().run();