Boost logo

Boost :

Subject: Re: [boost] Endian Library?
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2013-08-15 09:13:20

> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Andrew Ho
> Sent: Wednesday, August 14, 2013 9:42 AM
> To: boost_at_[hidden]
> 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
> found any documentation.
> There's also boost/detail/endian.hpp which has detection of the endian-ness, but doesn't provide
> 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 A. Bristow,
Prizet Farmhouse, Kendal LA8 8AB  UK
+44 1539 561830  07714330204

Boost list run by bdawes at, gregod at, cpdaniel at, john at