core (fixes #565): Change TypeId constructor to accept std::string
This commit is contained in:
committed by
Tommaso Pecorella
parent
d6e0211bff
commit
a4d174f8bf
@@ -465,7 +465,7 @@ TypeId
|
||||
Queue<Item>::GetTypeId (void)
|
||||
{
|
||||
std::string name = GetTypeParamName<Queue<Item> > ();
|
||||
static TypeId tid = TypeId (("ns3::Queue<" + name + ">").c_str ())
|
||||
static TypeId tid = TypeId ("ns3::Queue<" + name + ">")
|
||||
.SetParent<QueueBase> ()
|
||||
.SetGroupName ("Network")
|
||||
.AddTraceSource ("Enqueue", "Enqueue a packet in the queue.",
|
||||
|
||||
Reference in New Issue
Block a user