
Beman Dawes wrote:
Back in 1999 and 2000, there was discussion of a Boost Endian library to provided portable big and little endian integer types. I've dusted off some old code from Darin Adler, gotten his permission to use the new Boost license, and have put together a library.
A zip file of the whole library is available at http://mysite.verizon.net/~beman/endian.zip
The docs can be read at http://mysite.verizon.net/~beman/endian.html
Comments welcome!
This is more a couple of questions that comments. 1. have I misunderstood aligmnet completely when I thought that a single data member was not guaranteed to be aligned, but an array ways? (your aligned types use a data member, your unaligned use a char array). 2. why is a char array used, and not, say, a T[1] array? -Thorsten