Upgrade the underlying NFD and ndn-cxx to version 0.6.0
Compilation is currently broken and is fixed in the following commit
Change-Id: Ic0dba06a9afd66a810172d4a512f35f6df6b25a2
Refs: #4306
diff --git a/helper/ndn-strategy-choice-helper.hpp b/helper/ndn-strategy-choice-helper.hpp
index 302682a..39f9b87 100644
--- a/helper/ndn-strategy-choice-helper.hpp
+++ b/helper/ndn-strategy-choice-helper.hpp
@@ -116,14 +116,11 @@
NS_ASSERT(l3Protocol != nullptr);
NS_ASSERT(l3Protocol->getForwarder() != nullptr);
- nfd::Forwarder& forwarder = *l3Protocol->getForwarder();
- nfd::StrategyChoice& strategyChoice = forwarder.getStrategyChoice();
-
- if (!strategyChoice.hasStrategy(Strategy::STRATEGY_NAME)) {
- strategyChoice.install(make_unique<Strategy>(ref(forwarder)));
+ if (!Strategy::canCreate(Strategy::getStrategyName())) {
+ Strategy::template registerType<Strategy>();
}
- Install(node, namePrefix, Strategy::STRATEGY_NAME);
+ Install(node, namePrefix, Strategy::getStrategyName());
}
template<class Strategy>