Make Packet::RemoveTag behave as documented (bug #139)

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-02-14 17:48:15 +00:00
parent cdc9002e41
commit 147510bb00

View File

@@ -128,7 +128,15 @@ Tags::Remove (T &tag)
// input to this function is not a subclass of the Tag class.
parent = &tag;
NS_ASSERT (sizeof (T) <= Tags::SIZE);
return Remove (T::GetUid ());
if (Peek (tag))
{
Remove (T::GetUid ());
return true;
}
else
{
return false;
}
}
template <typename T>