diff --git a/include/fmt/std.h b/include/fmt/std.h index dfde1fb7..6954df16 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -635,7 +635,7 @@ struct formatter< } template - FMT_CONSTEXPR auto format(const std::exception& ex, Context& ctx) const + auto format(const std::exception& ex, Context& ctx) const -> decltype(ctx.out()) { auto out = ctx.out(); #if FMT_USE_RTTI