git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1624
270642c3-0616-0410-b53a-bc976706d245
template <class PacketType>
prefix_ void senf::detail::PacketRegistryImpl<KeyType>::registerPacket(key_t key, int priority)
{
- SENF_ASSERT(registry_.insert(
- typename Entry::ptr(new EntryImpl<PacketType>(key,priority))).second);
+ bool ok (registry_.insert(
+ typename Entry::ptr(new EntryImpl<PacketType>(key,priority))).second);
+ SENF_ASSERT(ok && "Duplicate packet registration");
}
template <class KeyType>