[ndnSIM] cannot change data attributes in onOutgoingData

Carl Zu carlzu8 at gmail.com
Mon Mar 7 14:23:23 PST 2016


Hi,

I had added some attributes to data.hpp. Then I tried to change their value
in onOutgoingData. But received following error:

../src/ndnSIM/NFD/daemon/fw/forwarder.cpp:526:54: error: passing ‘const
ndn::Data’ as ‘this’ argument of ‘void
ndn::Data::setCarlComponents(ns3::Ptr<CarlComp>)’ discards qualifiers
[-fpermissive]
               data.setCarlComponents (cPointer);

Changing my attributes to mutable also did not help, i.e. only the same
error appeared later.

Thanks for guidance in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160307/7680c069/attachment.html>


More information about the ndnSIM mailing list