Boost logo

Boost Users :

From: Brian Davis (bitminer_at_[hidden])
Date: 2008-07-27 15:51:27


Does this handle byte packing and bitwise operations such as bitfields do?
Is byte ordering 1 for free here as desired?

#pragma push (pack ,1)
struct
{
    boost::uint32_t rawSensorValue1 : 12;
    boost::uint32_t errorFlag1: 1;
    boost::uint32_t rawSensorValue2 : 12;
    boost::uint32_t errorFlag2: 1;
    boost::uint32_t unused : 6;

};
#pragma pop (pack)

Brian



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