git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@617
270642c3-0616-0410-b53a-bc976706d245
prefix_ OtherPacket senf::Packet::next()
const
{
- return next().as<OtherPacket>();
+ Packet p (next())
+ return p ? p.as<OtherPacket>() : OtherPacket();
}
template <class OtherPacket>
prefix_ OtherPacket senf::Packet::prev()
const
{
- return prev().as<OtherPacket>();
+ Packet p (prev());
+ return p ? p.as<OtherPacket>() : OtherPacket();
}
template <class OtherPacket>