forked from fmtlib/fmt
Use trailing return type instead of deduction
C++11 does not support deduction of return type.
This commit is contained in:
committed by
Victor Zverovich
parent
db86e8d5d3
commit
f45f70af09
@ -3199,7 +3199,7 @@ template <typename It, typename Char>
|
|||||||
struct formatter<arg_join<It, Char>, Char>:
|
struct formatter<arg_join<It, Char>, Char>:
|
||||||
formatter<typename std::iterator_traits<It>::value_type, Char> {
|
formatter<typename std::iterator_traits<It>::value_type, Char> {
|
||||||
template <typename FormatContext>
|
template <typename FormatContext>
|
||||||
auto format(const arg_join<It, Char> &value, FormatContext &ctx) {
|
auto format(const arg_join<It, Char> &value, FormatContext &ctx) -> decltype(ctx.begin()) {
|
||||||
typedef formatter<typename std::iterator_traits<It>::value_type, Char> base;
|
typedef formatter<typename std::iterator_traits<It>::value_type, Char> base;
|
||||||
auto it = value.begin;
|
auto it = value.begin;
|
||||||
auto out = ctx.begin();
|
auto out = ctx.begin();
|
||||||
|
Reference in New Issue
Block a user