Boost logo

Boost :

Subject: Re: [boost] [Beman's endian] explicit native endianes
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2010-06-04 08:11:23


On 4 June 2010 08:04, vicente.botet <vicente.botet_at_[hidden]> wrote:
>
> 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.
>

I would have expected that the other way around would be better. The
native endian would be implemented with memcpy, the big and little
portably, and as an optimization big or little would be = native,
based on the defines.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk