Skip to content

Commit

Permalink
Fix a remaining C++11 compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-jeon committed Nov 3, 2023
1 parent 5cf1d3f commit 9a7e3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/dragonbox/dragonbox_to_chars.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace jkj::dragonbox {
// Maximum required buffer size (excluding null-terminator)
template <class FloatFormat>
inline constexpr std::size_t max_output_string_length =
std::is_same_v<FloatFormat, ieee754_binary32>
std::is_same<FloatFormat, ieee754_binary32>::value
?
// sign(1) + significand(9) + decimal_point(1) + exp_marker(1) + exp_sign(1) + exp(2)
(1 + 9 + 1 + 1 + 1 + 2)
Expand Down

0 comments on commit 9a7e3fc

Please sign in to comment.