changeset 2939 | 3cff8627a284 |
parent 2834 | 1aab57845b07 |
child 2965 | 4b28e9740e3b |
--- a/src/core/type-id.cc Thu Apr 10 09:23:24 2008 -0700 +++ b/src/core/type-id.cc Thu Apr 10 10:23:56 2008 -0700 @@ -480,7 +480,7 @@ { tmp = tmp.GetParent (); } - return tmp == other; + return tmp == other && *this != other; } std::string TypeId::GetGroupName (void) const @@ -696,4 +696,9 @@ return a.m_tid != b.m_tid; } +bool operator < (TypeId a, TypeId b) +{ + return a.m_tid < b.m_tid; +} + } // namespace ns3