Add comment explaining omission of certain overloads.

This commit is contained in:
Beman
2015-08-03 16:09:06 -04:00
parent 117ee622c2
commit 5c26514ded

View File

@ -52,7 +52,11 @@ namespace endian
// //
//--------------------------------------------------------------------------------------//
// customization for exact-length arithmetic types. See doc/conversion.html/#FAQ
// customization for exact-length arithmetic types. See doc/conversion.html/#FAQ.
// Note: The omission of an overloads for the arithmetic type (typically long, or
// long long) not assigned to one of the exact length typedefs is a deliberate
// design decision. Such overloads would be non-portable and thus error prone.
inline int8_t endian_reverse(int8_t x) BOOST_NOEXCEPT;
inline int16_t endian_reverse(int16_t x) BOOST_NOEXCEPT;
inline int32_t endian_reverse(int32_t x) BOOST_NOEXCEPT;