Ticket #6627: nonfinite_num_facets_formatting_2.hpp.patch
File nonfinite_num_facets_formatting_2.hpp.patch, 1.1 KB (added by , 11 years ago) |
---|
-
nonfinite_num_facets.hpp
118 118 break; 119 119 120 120 case FP_ZERO: 121 if(flags_ & signed_zero) { 121 if(flags_ & signed_zero) 122 { // Distinguish between positive and negative zero. 122 123 if((boost::math::signbit)(val)) 124 { 123 125 put_num_and_fill(it, iosb, "-", "0", fill); 126 } 124 127 else if(iosb.flags() & std::ios_base::showpos) 128 { 125 129 put_num_and_fill(it, iosb, "+", "0", fill); 130 } 126 131 else 132 { // No sign. 127 133 put_num_and_fill(it, iosb, "", "0", fill); 134 } 128 135 } 129 else 130 put_num_and_fill(it, iosb, "", "0", fill); 131 break; 136 //else 137 //{ // 138 // put_num_and_fill(it, iosb, "", "0", fill); 139 //} 140 //break; 132 141 133 142 default: 134 143 it = std::num_put<CharType, OutputIterator>::do_put(