[ndnSIM] multiple pointers / shared pointers to Cs objects?

Xinyu Ma bitmxy at gmail.com
Tue Jan 30 08:50:27 PST 2018


Hello.

I think you can just use it like this:

nfd::Cs& cs = forward->getCs();
nfd::Cs* pcs = &forward->getCs();

Cs is just a part of forward, not a object created by forward. And of
course, it is not managed by reference count.
So you don't need to care the memory.

Best wishes,
Xinyu Ma.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180131/d73736a7/attachment.html>


More information about the ndnSIM mailing list