Boost logo

Boost Users :

From: Asif Lodhi (asif.lodhi_at_[hidden])
Date: 2008-03-29 17:53:17


Hi Roberts,

On 3/30/08, Robert Dailey <rcdailey_at_[hidden]> wrote:
> .............................................................................. Something like this
> might be in order:
>
> struct Packet
> {
> virtual PacketId GetId() const = 0;
> };
>
> struct WalkPacket : Packet
> {
> static const PacketId ID = PID_WALKPACKET;
> virtual PacketId GetId() const { return ID; }
> };
>

That's exactly what I was trying to say in my earlier reply.

--
Best regards,
Asif

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net