From 5c26514dedb00d129b8556d4f61666ef4ac82f35 Mon Sep 17 00:00:00 2001 From: Beman Date: Mon, 3 Aug 2015 16:09:06 -0400 Subject: [PATCH] Add comment explaining omission of certain overloads. --- include/boost/endian/conversion.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/endian/conversion.hpp b/include/boost/endian/conversion.hpp index 1d89596..1e502d5 100644 --- a/include/boost/endian/conversion.hpp +++ b/include/boost/endian/conversion.hpp @@ -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;