forked from boostorg/endian
Add comment explaining omission of certain overloads.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user