|
Boost : |
Subject: [boost] [Beman's endian] explicit native endianes
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-06-04 08:04:36
Hi Beman,
I see that there are specific classes for native endian, endian<endianness::native, ...>.
I was wondering if instead of defining a separated class we can not define endianness::native depending on the ENDIAN of the host and remove the explicit definition.
# ifdef BOOST_BIG_ENDIAN
BOOST_SCOPED_ENUM_START(endianness) { big, little, native=big }; BOOST_SCOPED_ENUM_END
#else
BOOST_SCOPED_ENUM_START(endianness) { big, little, native=little }; BOOST_SCOPED_ENUM_END
#endif
Will this break the design?
Best,
_____________________
Vicente Juan Botet Escribá
http://viboes.blogspot.com/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk