
26 Jul
2010
26 Jul
'10
1:29 p.m.
Zitat von Brian Bartman <bbartmanboost@gmail.com>:
what's the reason for letting the user control how the bits are stored? (specified order, filler<>, bit_align<>)
The rationale behind allowing the user to control the bits is so that the bitfield_tuple can be used to construct packet header.
network packet header? wouldn't that also require guarantees regarding endian-ness and alignment between multiple bitfield_tuples (or a bitfield_tuple and another type) that only a platform/compiler can give? for example: the endian-ness of a 6-bit integer that is part of a bitfield_tuple is platform-dependent, isn't it?