Bug 1838 - FlowMonitorHelper must not be copied.
FlowMonitorHelper must not be copied.
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: flow-monitor
ns-3-dev
All All
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-16 03:41 UTC by Tommaso Pecorella
Modified: 2014-01-16 03:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2014-01-16 03:41:15 UTC
This thread found a problem with FlowMonitorHelper.
If it is copied (by passing it to a function), all the internals will get messed up, which is not a good idea.

https://groups.google.com/forum/#!topic/ns-3-users/Uus2kjVTUeA

The solution is to forbid copy constructors, so the user will have to think twice (and use pointers).
Comment 1 Tommaso Pecorella 2014-01-16 03:52:41 UTC
changeset 10576	efba60267342