From 936aba5f9020362b59bd5869a3b3a0a9841f60e8 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 20 May 2018 07:42:09 -0700 Subject: [PATCH] Fix compilation errors on gcc 4.4 --- include/fmt/format.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 895cf925..f274586c 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -304,7 +304,7 @@ fp operator*(fp x, fp y); // Compute k such that its cached power c_k = c_k.f * pow(2, c_k.e) satisfies // min_exponent <= c_k.e + e <= min_exponent + 3. inline int compute_cached_power_index(int e, int min_exponent) { - constexpr double one_over_log2_10 = 0.30102999566398114; // 1 / log2(10) + const double one_over_log2_10 = 0.30102999566398114; // 1 / log2(10) return static_cast(std::ceil((min_exponent - e + 63) * one_over_log2_10)); } @@ -2236,7 +2236,9 @@ void handle_dynamic_spec( /** The default argument formatter. */ template class arg_formatter: - public internal::function, public internal::arg_formatter_base { + public internal::function< + typename internal::arg_formatter_base::iterator>, + public internal::arg_formatter_base { private: typedef typename Range::value_type char_type; typedef internal::arg_formatter_base base;