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/table/pit.cpp b/daemon/table/pit.cpp
index 9c2554a..6f0e446 100644
--- a/daemon/table/pit.cpp
+++ b/daemon/table/pit.cpp
@@ -82,7 +82,7 @@
// then check if this Interest is already in the PIT entries
std::vector<shared_ptr<pit::Entry> >::const_iterator it =
std::find_if(pitEntries.begin(), pitEntries.end(),
- bind(&predicate_PitEntry_similar_Interest, _1, boost::cref(interest)));
+ bind(&predicate_PitEntry_similar_Interest, _1, cref(interest)));
if (it != pitEntries.end())
{
diff --git a/daemon/table/strategy-choice.cpp b/daemon/table/strategy-choice.cpp
index fff84c1..2383118 100644
--- a/daemon/table/strategy-choice.cpp
+++ b/daemon/table/strategy-choice.cpp
@@ -265,7 +265,7 @@
std::for_each(m_nameTree.partialEnumerate(entry->getPrefix(),
bind(&predicate_nameTreeEntry_needResetStrategyChoice,
- _1, boost::cref(*m_nameTree.get(*entry)))),
+ _1, cref(*m_nameTree.get(*entry)))),
m_nameTree.end(),
&clearStrategyInfo);
}
diff --git a/daemon/table/strategy-info-host.hpp b/daemon/table/strategy-info-host.hpp
index dfe9341..361eaaf 100644
--- a/daemon/table/strategy-info-host.hpp
+++ b/daemon/table/strategy-info-host.hpp
@@ -91,7 +91,7 @@
{
shared_ptr<T> info = this->getStrategyInfo<T>();
if (!static_cast<bool>(info)) {
- info = make_shared<T>(boost::ref(a1));
+ info = make_shared<T>(ref(a1));
this->setStrategyInfo(info);
}
return info;