make Callback use a separate empty type

This commit is contained in:
Mathieu Lacage
2007-05-25 14:13:23 +02:00
parent ca530216ec
commit 83dcd91223
3 changed files with 10 additions and 2 deletions

View File

@@ -61,6 +61,7 @@ core.add_headers ([
])
core.add_inst_headers([
'system-wall-clock-ms.h',
'empty.h',
'callback.h',
'ptr.h',
'object.h',

View File

@@ -24,6 +24,7 @@
#include "ptr.h"
#include "fatal-error.h"
#include "empty.h"
namespace ns3 {
@@ -56,8 +57,6 @@ namespace ns3 {
* and relies on a reference list rather than autoPtr to hold
* the pointer.
*/
class empty {};
template <typename T>
struct CallbackTraits;

8
src/core/empty.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef EMPTY_H
#define EMPTY_H
namespace ns3 {
class empty {};
}
#endif /* EMPTY_H */