make Callback use a separate empty type
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 25 May 2007 14:13:23 +0200
changeset 714 e6561d5e8018
parent 713 c3c745a80610
child 715 697cce7e938a
make Callback use a separate empty type
SConstruct
src/core/callback.h
src/core/empty.h
--- a/SConstruct	Fri May 25 12:27:40 2007 +0200
+++ b/SConstruct	Fri May 25 14:13:23 2007 +0200
@@ -61,6 +61,7 @@
 ])
 core.add_inst_headers([
     'system-wall-clock-ms.h',
+    'empty.h',
     'callback.h',
     'ptr.h',
     'object.h',
--- a/src/core/callback.h	Fri May 25 12:27:40 2007 +0200
+++ b/src/core/callback.h	Fri May 25 14:13:23 2007 +0200
@@ -24,6 +24,7 @@
 
 #include "ptr.h"
 #include "fatal-error.h"
+#include "empty.h"
 
 namespace ns3 {
 
@@ -56,8 +57,6 @@
  * and relies on a reference list rather than autoPtr to hold
  * the pointer.
  */
-class empty {};
-
 template <typename T>
 struct CallbackTraits;
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/core/empty.h	Fri May 25 14:13:23 2007 +0200
@@ -0,0 +1,8 @@
+#ifndef EMPTY_H
+#define EMPTY_H
+
+namespace ns3 {
+class empty {};
+}
+
+#endif /* EMPTY_H */