From a7ae5666a02b1b9cee5e44a07758dcaa244b5b62 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 19 Feb 2018 21:03:51 +0000 Subject: [PATCH] Enable join on msvc --- include/fmt/format.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 15717fbd..f30d5f9c 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -140,6 +140,10 @@ # endif #endif +#if FMT_HAS_GXX_CXX11 || FMT_MSC_VER >= 1600 +# define FMT_USE_TRAILING_RETURN 1 +#endif + // __builtin_clz is broken in clang with Microsoft CodeGen: // https://github.com/fmtlib/fmt/issues/519 #ifndef _MSC_VER @@ -3221,7 +3225,7 @@ arg_join join(It begin, It end, wstring_view sep) { return arg_join(begin, end, sep); } -#if FMT_HAS_GXX_CXX11 +#if FMT_USE_TRAILING_RETURN template auto join(const Range &range, string_view sep) -> arg_join {