
28 May
2010
28 May
'10
12:36 a.m.
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.