projects
/
senf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
PPI: avoid dynamic_cast in Connectors peer() by caching peer_ on connect()
[senf.git]
/
senf
/
Packets
/
Packet.cti
diff --git
a/senf/Packets/Packet.cti
b/senf/Packets/Packet.cti
index
ecb8baa
..
bea3eaa
100644
(file)
--- a/
senf/Packets/Packet.cti
+++ b/
senf/Packets/Packet.cti
@@
-78,7
+78,8
@@
prefix_ OtherPacket senf::Packet::next(NoThrow_t)
const
{
Packet p (next(nothrow));
- return p && p.is<OtherPacket>() ? p.as<OtherPacket>() : OtherPacket();
+ return p && p.is<OtherPacket>() ?
+ OtherPacket(p.ptr()->as<typename OtherPacket::type>()) : OtherPacket();
}
template <class OtherPacket>