diff --git a/include/fmt/format.h b/include/fmt/format.h index a0572fc5..2e725364 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3199,10 +3199,10 @@ template struct formatter, Char>: formatter::value_type, Char> { template - auto format(const arg_join &value, FormatContext &ctx) { + auto format(const arg_join &value, FormatContext &ctx) -> decltype(ctx.begin()) { typedef formatter::value_type, Char> base; auto it = value.begin; - auto out = ctx.begin(); + auto out = ctx.begin(); if (it != value.end) { out = base::format(*it++, ctx); while (it != value.end) {