On Mon, 18 Mar 2013, Rene Rivera wrote:
First pass at the Predef header for this at < https://raw.github.com/grafikrobot/boost-predef/master/include/boost/predef/endian.h>. Currently only tested on my OSX laptop. Would appreciate others trying it out. The info is a combination of the indispensable description from predef.sf.net (Bjorn Reese et al), known endian specifications I could find on the architectures I currently detect, and a small amount of general web searching.
If this is supposed to replace detail/endian.hpp, couldn't you define the same macros? BOOST_BIG_ENDIAN or BOOST_LITTLE_ENDIAN, BOOST_BYTE_ORDER which can be 4321 or 1234, etc. Boost refused to document those because they aren't reliable enough, but that doesn't mean users didn't come to rely on them. -- Marc Glisse