
20 Jul
2006
20 Jul
'06
3:20 a.m.
On 7/19/06, Dave Dribin <dave-ml@dribin.org> 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