Bug 904 - Packet::AddPacketTag is const but RemovePacketTag is not
Packet::AddPacketTag is const but RemovePacketTag is not
Status: RESOLVED WONTFIX
Product: ns-3
Classification: Unclassified
Component: core
ns-3-dev
All All
: P5 normal
Assigned To: Mathieu Lacage
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-02 14:40 EDT by Gustavo J. A. M. Carneiro
Modified: 2011-08-10 13:17 EDT (History)
1 user (show)

See Also:


Attachments
patch (1016 bytes, patch)
2010-05-02 14:40 EDT, Gustavo J. A. M. Carneiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo J. A. M. Carneiro 2010-05-02 14:40:34 EDT
Created attachment 861 [details]
patch

I am surprised that Packet::AddPacketTag is const but RemovePacketTag is not.  This is inconsistent.
Comment 1 Gustavo J. A. M. Carneiro 2011-05-18 13:37:26 EDT
ping
Comment 2 Mathieu Lacage 2011-08-10 13:17:48 EDT
why Add is const: allows you to tag packets even from trace callbacks that give you const packets. How ? scary.
why Remove is not const: could not figure out how to make it work.