<div dir="ltr"><div>Hi All,<br><br></div>I am trying to resend an Interest from a strategy. I am having trouble using the pit entry, not sure if I am missing something trivial.<br><div><div><br></div><div>Below is the code snippets I tried:</div><div><br></div><div>nfd::Pit& pit = node0->getForwarder()->getPit();<br>std::cout << pit.size() << std::endl; //works<br></div><div><br></div><div>for (auto pitEntry = pit.begin(); pitEntry != pit.end(); pitEntry++ ){<br>      if (boost::algorithm::contains(pitEntry->getName().toUri(), "/ndnSIM")) {<br>          this->sendInterest(*pitEntry, *addFace, pitEntry->getInterest());  <br></div><div>      }</div><div></div><div></div><div>This returns "no known conversion for argument 1 from ‘const nfd::pit::Entry’ to ‘const std::shared_ptr<nfd::pit::Entry>&".</div><div><br></div><div><br></div><div>If I change the last line to :<br></div><div>            this->sendInterest(make_shared<pit::Entry>(*pitEntry), *addFace, pitEntry->getInterest());</div><div></div><div>I get an error: : "nfd::pit::Entry::Entry(const nfd::pit::Entry&)’ is implicitly deleted because the default definition would be ill-formed".</div><div><br></div><div>I did not find a method in the pit.hpp or pit-entry.hpp that returns a shared_ptr for a pit entry.</div><div>So, how do I send out an Interest from the strategy? Any help is appreciated. <br></div><div><br></div><div>Thanks.<br></div><div><br></div><div><br clear="all"><br>-- <br><div class="gmail_signature"><br>====================================<br><a href="http://www.cs.colostate.edu/%7Esusmit" target="_blank">http://www.cs.colostate.edu/~susmit</a><br>====================================</div></div></div></div>