Bug 1838 - FlowMonitorHelper must not be copied.
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Thu, 16 Jan 2014 09:46:21 +0100
changeset 10576 efba60267342
parent 10575 16f8ac386faf
child 10577 68515954fc99
Bug 1838 - FlowMonitorHelper must not be copied.
RELEASE_NOTES
src/flow-monitor/helper/flow-monitor-helper.h
--- a/RELEASE_NOTES	Wed Jan 15 23:35:55 2014 +0100
+++ b/RELEASE_NOTES	Thu Jan 16 09:46:21 2014 +0100
@@ -33,6 +33,7 @@
 - Bug 1786 - os << int64x64_t prints un-normalized fractional values
 - Bug 1821 - Setting an interface to Down state will cause various asserts in IPv6
 - Bug 1837 - AODV crashes when using multiple interfaces
+- Bug 1838 - FlowMonitorHelper must not be copied.
 
 Release 3.19
 =============
--- a/src/flow-monitor/helper/flow-monitor-helper.h	Wed Jan 15 23:35:55 2014 +0100
+++ b/src/flow-monitor/helper/flow-monitor-helper.h	Thu Jan 16 09:46:21 2014 +0100
@@ -80,6 +80,20 @@
   Ptr<FlowClassifier> GetClassifier ();
 
 private:
+  /**
+   * \brief Copy constructor
+   *
+   * Defined and unimplemented to avoid misuse
+   */
+  FlowMonitorHelper (const FlowMonitorHelper&);
+  /**
+   * \brief Copy constructor
+   *
+   * Defined and unimplemented to avoid misuse
+   * \returns
+   */
+  FlowMonitorHelper& operator= (const FlowMonitorHelper&);
+
   ObjectFactory m_monitorFactory;       //!< Object factory
   Ptr<FlowMonitor> m_flowMonitor;       //!< the FlowMonitor object
   Ptr<FlowClassifier> m_flowClassifier; //!< the FlowClassifier object