core (fixes #565): Change TypeId constructor to accept std::string

This commit is contained in:
Eduardo Almeida
2022-02-25 12:08:10 +00:00
committed by Tommaso Pecorella
parent d6e0211bff
commit a4d174f8bf
12 changed files with 23 additions and 23 deletions

View File

@@ -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.",