|
Boost Users : |
From: me22 (me22.ca_at_[hidden])
Date: 2006-07-19 23:20:17
On 7/19/06, Dave Dribin <dave-ml_at_[hidden]> wrote:
> I'd suggest making this change to all classes so that they can be
> used in unions.
>
The original discussion mentioned something that appears similar and
was handled by templating the full struct, along the lines of the
following:
template <endianness foobar_endianness>
struct header
{
big4_t file_code;
big4_t file_length;
little4_t version;
little4_t shape_type;
endian<foobar_endianness, int32_t> foobar;
};
Can you explain what your use case is for this union?
~ Scott McMurray
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