
----- Original Message ----- From: "Terry Golubiewski" <tjgolubi@netins.net> To: <boost@lists.boost.org> Sent: Thursday, June 03, 2010 10:27 PM Subject: Re: [boost] [boost::endian] Summary of discussion #1
Beman's approach is integer centric and combines the use of non-natively-sized integers and endianness. I would like to see Beman's library split into two parts: the integer part and the endian-part.
I have split the Beman endian implementation in two classes/files endian.hpp as before and endian_pack.hpp. The split has been straightforward. All the test passes on cygwin gcc-3.4, mingw gcc 4.4 and MSVC 9.0Express (all Little endian). I have added a endian_pack_test.cpp file which is based on the endian_test.cpp file (just changing endian by endian_pack and removing operator ++ test). In order to make the test as transparent as possible I have defined also the corresponing types to big32_t as big32_pt (for pack type). The attached patch contains the new and modified files. Beman, could you take a look to see if this changes can be incorporated in your library? If this is the case, I can work on the documentation. Can someone test other platforms, compilers? Best, Vicente