From 117ee622c28b302c341715aab0395f193ff382d8 Mon Sep 17 00:00:00 2001 From: Beman Date: Tue, 21 Jul 2015 14:44:36 -0400 Subject: [PATCH] All Linux names FAQ entry. --- doc/conversion.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/conversion.html b/doc/conversion.html index d811e07..234537b 100644 --- a/doc/conversion.html +++ b/doc/conversion.html @@ -348,6 +348,17 @@ portability for both programs and data.

+

Why not use the Linux names (htobe16, htole16, be16toh, le16toh, etc.) ?

+ +
+ +

Those names are non-standard and vary even between POSIX-like operating +systems. A C++ library TS was going to use those names, but found they were +sometimes implemented as macros. Since macros do not respect scoping and +namespace rules, to use them would be very error prone.

+ +
+

Acknowledgements

Tomas Puverle was instrumental in identifying and articulating the need to support endian conversion as separate from endian integer types. Phil Endecott suggested the form of the value returning signatures. @@ -362,7 +373,7 @@ that became the starting point for boost/endian/detail/intrinsic.hppint8_t endian_reverse() and templated endian_reverse_inplace() implementations.


-

Last revised: 26 March, 2015

+

Last revised: 21 July, 2015

© Copyright Beman Dawes, 2011, 2013

Distributed under the Boost Software License, Version 1.0. See www.boost.org/ LICENSE_1_0.txt