Fix more compilation errors on gcc 4.6

This commit is contained in:
Victor Zverovich
2018-02-28 05:09:24 -08:00
parent 6090e51b65
commit 1b4525384b
4 changed files with 9 additions and 3 deletions

View File

@@ -290,7 +290,7 @@ class printf_arg_formatter : public internal::arg_formatter_base<Range> {
template <typename T>
struct printf_formatter {
template <typename ParseContext>
auto parse(ParseContext &ctx) { return ctx.begin(); }
auto parse(ParseContext &ctx) -> decltype(ctx.begin()) { return ctx.begin(); }
template <typename FormatContext>
auto format(const T &value, FormatContext &ctx) -> decltype(ctx.begin()) {