M
Mike -- Email Ignored
In bit fields, am I guaranteed that the order
of the bits used is from low to high?
For example, in the fragment below, am I
guaranteed that the symbol "hi" refers to
the high order bit in an element of
type TYP (as it does on my box)?
template <class TYP>
struct Sfield
{
TYP lo : sizeof(TYP) * 8 - 1;
TYP hi : 1;
};
Thanks,
Mike.
of the bits used is from low to high?
For example, in the fragment below, am I
guaranteed that the symbol "hi" refers to
the high order bit in an element of
type TYP (as it does on my box)?
template <class TYP>
struct Sfield
{
TYP lo : sizeof(TYP) * 8 - 1;
TYP hi : 1;
};
Thanks,
Mike.