|
Boost Users : |
Subject: Re: [Boost-users] Can boost help me organize/parse lots of binary data?
From: Gabriel Bizzotto (gbizzotto_at_[hidden])
Date: 2013-02-21 06:23:41
Chris,
> class Item
> {
> virtual void Decode(istream& Stream) = 0;
> }
> class Double : public Item
> class String : public Item
> class EmployeePacket
> {
> std::vector<Item*> Items;
...
Maybe boost::any will do better here ?
http://www.boost.org/doc/libs/1_53_0/doc/html/any.html
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