Boost logo

Boost Users :

Subject: Re: [Boost-users] Needs advices on design ( mpl or processor )
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-01-06 12:44:17


On 01/06/12 10:19, Allan Nielsen wrote:
> Hi
>
> This is not a specific questions directly related to Boost::mpl, but a request
> for help if somebody has the time...
>
> For the last couple of month I have been trying to learn to use the boost::mpl
> library.
>
> To learn to use the library I decided to use it for creating a
> "compressed-enum" library. The library should make it possible to store several
> enums in a single variable (for instance an unsigned int)

Wouldn't that variable have to be large enough to contain all the enums.
At first glance this looks like:

  fusion::vector<Enum_1,Enum_2,...Enum_n>:

(See
http://www.boost.org/doc/libs/1_48_0/libs/fusion/doc/html/fusion/container/vector.html)

Why wouldn't a fusion::vector be suitable?

-regards,
Larry


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