[ndnSIM] Still getting an exception (bad weak_ptr)
John Baugh
jpbaugh at umich.edu
Wed Nov 9 19:54:09 PST 2016
You are all awesome! Thanks a ton. It worked.
It would be great if some documentation existed that explained that aspect
of the packets.
Thanks!
John
On Wed, Nov 9, 2016 at 11:44 AM, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:
> Hi John
>
> Many places in NFD and ndn-cxx assume the packet (Interest or Data or
> Nack) are created with make_shared, even if the API takes a reference
> instead of shared_ptr.
> When a packet is created directly without make_shared, undefined behavior
> occurs which is usually bad_weak_ptr.
>
> Yours, Junxiao
>
> On Nov 9, 2016 07:53, "John Baugh" <jpbaugh at umich.edu> wrote:
> >
> > ndn::Data tempD;
> > myContentStore.insert(tempD);
> >
> > Shouldn't I just be able to do this?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161109/c60ee096/attachment.html>
More information about the ndnSIM
mailing list