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/rib/rib-manager.cpp b/rib/rib-manager.cpp
index 73ef71d..f4fc9c8 100644
--- a/rib/rib-manager.cpp
+++ b/rib/rib-manager.cpp
@@ -57,14 +57,8 @@
),
};
-inline static void
-NullDeleter(boost::asio::io_service* variable)
-{
- // do nothing
-}
-
RibManager::RibManager()
- : m_face(shared_ptr<boost::asio::io_service>(&getGlobalIoService(), &NullDeleter))
+ : m_face(getGlobalIoService())
, m_nfdController(new ndn::nfd::Controller(m_face))
, m_localhostValidator(m_face)
, m_localhopValidator(m_face)
@@ -96,7 +90,7 @@
}
NFD_LOG_INFO("Start monitoring face create/destroy events");
- m_faceMonitor.addSubscriber(boost::bind(&RibManager::onNotification, this, _1));
+ m_faceMonitor.addSubscriber(bind(&RibManager::onNotification, this, _1));
m_faceMonitor.startNotifications();
}