From f45f70af097bf54897b6cb0ced2699ee38515276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 15 Feb 2018 17:34:38 +0100 Subject: [PATCH] Use trailing return type instead of deduction C++11 does not support deduction of return type. --- include/fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {