$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2008-03-29 20:26:09
On Sat, Mar 29, 2008 at 7:06 PM, Steven Watanabe <watanabesj_at_[hidden]>
wrote:
> 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
>
That's exactly what I was thinking :) I just wanted to make sure!