diff --git a/include/boost/detail/cstdfloat_complex.hpp b/include/boost/detail/cstdfloat_complex.hpp index 7a68907ea..5029ef7ea 100644 --- a/include/boost/detail/cstdfloat_complex.hpp +++ b/include/boost/detail/cstdfloat_complex.hpp @@ -7,6 +7,8 @@ // or copy at http://www.boost.org/LICENSE_1_0.txt) // +// Implement quadruple-precision (and extended) support for . + #ifndef _BOOST_CSTDFLOAT_COMPLEX_2014_02_15_HPP_ #define _BOOST_CSTDFLOAT_COMPLEX_2014_02_15_HPP_ diff --git a/include/boost/detail/cstdfloat_iostream.hpp b/include/boost/detail/cstdfloat_iostream.hpp index 2008516ff..28eb5b1e4 100644 --- a/include/boost/detail/cstdfloat_iostream.hpp +++ b/include/boost/detail/cstdfloat_iostream.hpp @@ -180,9 +180,9 @@ const bool showpoint = ((f & std::ios_base::showpoint) == std::ios_base::showpoint); const bool showpos = ((f & std::ios_base::showpos) == std::ios_base::showpos); - const bool neg = str.size() && (str[0] == '-'); + const bool b_neg = ((str.size() != 0U) && (str[0] == '-')); - if(neg) + if(b_neg) { str.erase(0, 1); } @@ -219,7 +219,8 @@ } } } - if(neg) + + if(b_neg) { str.insert(0U, 1U, '-'); } @@ -272,7 +273,7 @@ { if((1 + my_exp) > static_cast(str.size())) { - // Just pad out the end with zeros: + // Just pad out the end with zeros. str.append(static_cast((1 + my_exp) - static_cast(str.size())), '0'); if(showpoint || fixed) @@ -338,7 +339,7 @@ str.append(e); } - if(neg) + if(b_neg) { str.insert(0U, 1U, '-'); } diff --git a/include/boost/detail/cstdfloat_limits.hpp b/include/boost/detail/cstdfloat_limits.hpp index 85b45dd5c..79aa1d34f 100644 --- a/include/boost/detail/cstdfloat_limits.hpp +++ b/include/boost/detail/cstdfloat_limits.hpp @@ -7,7 +7,7 @@ // or copy at http://www.boost.org/LICENSE_1_0.txt) // -// Implement the basic parts of floating-point typedefs having specified widths. +// Implement quadruple-precision std::numeric_limits<> support. #ifndef _BOOST_CSTDFLOAT_LIMITS_2014_01_09_HPP_ #define _BOOST_CSTDFLOAT_LIMITS_2014_01_09_HPP_ diff --git a/include/boost/detail/cstdfloat_types.hpp b/include/boost/detail/cstdfloat_types.hpp index e6089a1b3..cfeb0bd0d 100644 --- a/include/boost/detail/cstdfloat_types.hpp +++ b/include/boost/detail/cstdfloat_types.hpp @@ -7,7 +7,7 @@ // or copy at http://www.boost.org/LICENSE_1_0.txt) // -// Implement the basic parts of floating-point typedefs having specified widths. +// Implement the types for floating-point typedefs having specified widths. #ifndef _BOOST_CSTDFLOAT_TYPES_2014_01_09_HPP_ #define _BOOST_CSTDFLOAT_TYPES_2014_01_09_HPP_