
Hi, I'm curious what the status for endian/byte order support in Boost is (namely, detecting system byte order and swapping between byte orders)? I did a quick search of the include dir and it seems that Spirit has some endian support, though I haven't found any documentation. There's also boost/detail/endian.hpp which has detection of the endian-ness, but doesn't provide any structure for switching between endians/byte-orders. I also found endian.h in predef, which appears to do something similar to boost/detail/endian.hpp. Searching through the list, there were at least 2 different proposals for Boost.Endian (a few years ago), though as far as I can tell neither of these implementations were formally adopted into Boost. I couldn't find any reason why they weren't included.

-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of Andrew Ho Sent: Wednesday, August 14, 2013 9:42 AM To: boost@lists.boost.org Subject: [boost] Endian Library?
Hi, I'm curious what the status for endian/byte order support in Boost is (namely, detecting system byte order and swapping between byte orders)?
I did a quick search of the include dir and it seems that Spirit has some endian support, though I haven't found any documentation.
There's also boost/detail/endian.hpp which has detection of the endian-ness, but doesn't provide any structure for switching between endians/byte-orders.
I also found endian.h in predef, which appears to do something similar to boost/detail/endian.hpp.
Searching through the list, there were at least 2 different proposals for Boost.Endian (a few years ago), though as far as I can tell neither of these implementations were formally adopted into Boost.
I couldn't find any reason why they weren't included.
As I recall, Boost.Endian at \boost-sandbox\endian by Beman Dawes was accepted at review (with some provisos) but since then I suspect Beman has been busy with C++11 Standards work. There are some docs at /boost-sandbox/endian/libs/endian/doc/index.html If anyone wants to pick up this ball, I suspect that Beman would be willing to have it finished? Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com
participants (2)
-
Andrew Ho
-
Paul A. Bristow