<div dir="ltr">Hi Natalya<div><br></div><div>You may invoke Pit::insert again with the same Interest, which would return the same entry as a shared_ptr<pit::Entry>.</div><div>Then you can erase this entry.</div><div><br></div><div>Yours, Junxiao</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 10, 2015 at 4:02 AM, Natalya Rozhnova <span dir="ltr"><<a href="mailto:rozhnova.natalya@gmail.com" target="_blank">rozhnova.natalya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi all,<br><br></div>It's me again. :)<br></div><div>The task I want to perform is to iterate in the Pit in order to find some interesting entries and delete them.<br>I just discovered that the Pit iterators return const nfd::pit::Entry& but the function erase takes shared_ptr<pit::Entry> as parameter. I can't create the shared_ptr with make_shared because the class is protected by "noncopyable". So I can't delete the entries I want by iterating in the pit... <br></div><div>Is there any other way to do it?<br></div><div><br></div><div>Thanks in advance.<br></div><div>Best,<br></div><div>Natalya<br></div></div>
<br>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div>