From eec4df655d411b3611b164c0fdb44e52afc754e3 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 8 Feb 2008 02:21:23 +0100 Subject: [PATCH] add a default constructor for the TypeId class --- src/core/object.cc | 4 ++++ src/core/object.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/core/object.cc b/src/core/object.cc index ef051223a..86baa8b9a 100644 --- a/src/core/object.cc +++ b/src/core/object.cc @@ -365,6 +365,10 @@ TypeIdTraceResolver::TraceAll (std::ostream &os, const TraceContext &context) * The TypeId class *********************************************************************/ +TypeId::TypeId () + : m_tid (0) +{} + TypeId::TypeId (std::string name) { uint16_t uid = Singleton::Get ()->AllocateUid (name); diff --git a/src/core/object.h b/src/core/object.h index 7da6ae27c..4c874fd5f 100644 --- a/src/core/object.h +++ b/src/core/object.h @@ -233,6 +233,8 @@ public: uint32_t flags, Ptr spec); + // construct an invalid TypeId. + TypeId (); ~TypeId (); private: friend class Object;