Boost logo

Boost :

Subject: Re: [boost] [gsoc][RFC] Pointer Plus Bits
From: Stefan Strasser (strasser_at_[hidden])
Date: 2010-07-26 09:29:05

Zitat von Brian Bartman <bbartmanboost_at_[hidden]>:
>> 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?

Boost list run by bdawes at, gregod at, cpdaniel at, john at