diff --git a/include/fmt/base.h b/include/fmt/base.h index f91f8e825354..9345891a6c61 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2667,7 +2667,7 @@ template struct fstring { template ::value)> FMT_CONSTEVAL FMT_ALWAYS_INLINE fstring(const S& s) : str(s) { - FMT_CONSTEXPR auto sv = string_view(S()); + auto sv = string_view(str); if (FMT_USE_CONSTEVAL) detail::parse_format_string(sv, checker(sv, arg_pack())); #ifdef FMT_ENFORCE_COMPILE_STRING diff --git a/include/fmt/format.h b/include/fmt/format.h index 4ad1effd5132..52af87b8b146 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2674,7 +2674,7 @@ class bigint { FMT_CONSTEXPR auto get_bigit(int i) const -> bigit { return i >= exp_ && i < num_bigits() ? bigits_[i - exp_] : 0; - }; + } FMT_CONSTEXPR void subtract_bigits(int index, bigit other, bigit& borrow) { auto result = double_bigit(bigits_[index]) - other - borrow;