diff --git a/src/core/object-vector.h b/src/core/object-vector.h index 934f0c010..5f79ae73d 100644 --- a/src/core/object-vector.h +++ b/src/core/object-vector.h @@ -94,7 +94,7 @@ public: return true; } virtual std::string GetUnderlyingTypeInformation (void) const { - return T::GetTypeId ().GetName (); + return "ns3::Ptr< " + T::GetTypeId ().GetName () + " >"; } virtual Ptr Create (void) const { return ns3::Create (); diff --git a/src/core/pointer.h b/src/core/pointer.h index b880606ad..83ddac3a2 100644 --- a/src/core/pointer.h +++ b/src/core/pointer.h @@ -120,7 +120,7 @@ class APointerChecker : public PointerChecker } virtual std::string GetUnderlyingTypeInformation (void) const { TypeId tid = T::GetTypeId (); - return "Ptr< " + tid.GetName () + " >"; + return "ns3::Ptr< " + tid.GetName () + " >"; } virtual Ptr Create (void) const { return ns3::Create ();