
30 Mar
2008
30 Mar
'08
12:06 a.m.
AMDG Robert Dailey wrote:
struct WalkPacket : CRTPPacket<WalkPacket, PID_WALKPACKET> {}; ?
What exactly is this structure supposed to present?
I was just thinking of moving the duplicated code into CRTPPacket template<class Derived, PacketID Id> struct CRTPPacket : Packet { static const PacketID ID = Id; virtual PacketID getID() const { return(ID); } }; In Christ, Steven Watanabe