Bug 118 - Packet::AddTag is a non-const method
Packet::AddTag is a non-const method
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-11 07:44 UTC by Mathieu Lacage
Modified: 2008-07-01 13:32 UTC (History)
0 users

See Also:


Attachments
fix bug 118 (3.94 KB, patch)
2007-12-11 07:45 UTC, Mathieu Lacage
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Lacage 2007-12-11 07:44:15 UTC
If you want to be able to tag packets from trace sinks and if trace sinks take Ptr<const Packet> arguments, then, Packet::AddTag must be made a const method.

Patch attached.
Comment 1 Mathieu Lacage 2007-12-11 07:45:09 UTC
Created attachment 95 [details]
fix bug 118
Comment 2 Tom Henderson 2007-12-12 02:10:53 UTC
+1
Comment 3 Mathieu Lacage 2007-12-26 10:00:13 UTC
patch applied.