Boost logo

Boost :

Subject: Re: [boost] [boost::endian] Request for comments/interest
From: Rob Riggs (rob_at_[hidden])
Date: 2010-05-27 20:36:40


On 05/26/2010 11:07 AM, Stewart, Robert wrote:
> Tomas Puverle wrote:
>
>
>> The highlights of the library are the following:
>> - Very simple interface: swap<machine_to_little/big>(),
>> swap_in_place<machine_to_little/big>()
>>
> In my version of such functionality, I have byte_order::to_host() and byte_order::to_network() function templates. Those names are more in keeping with the C functions htons, ntohs, etc.
>

+1 on the naming. No matter what the interface morphs into, "network"
should be a valid synonym for "big_endian" for the reason stated.


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