Workaround for gcc 6 (#3810)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
parent
73d91351b4
commit
d249fd9f84
@ -179,7 +179,8 @@ For example::
|
|||||||
struct fmt::formatter<point> : nested_formatter<double> {
|
struct fmt::formatter<point> : nested_formatter<double> {
|
||||||
auto format(point p, format_context& ctx) const {
|
auto format(point p, format_context& ctx) const {
|
||||||
return write_padded(ctx, [=](auto out) {
|
return write_padded(ctx, [=](auto out) {
|
||||||
return format_to(out, "({}, {})", nested(p.x), nested(p.y));
|
return format_to(out, "({}, {})", this->nested(p.x),
|
||||||
|
this->nested(p.y));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1765,7 +1765,8 @@ FMT_BEGIN_NAMESPACE
|
|||||||
template <> struct formatter<point> : nested_formatter<double> {
|
template <> struct formatter<point> : nested_formatter<double> {
|
||||||
auto format(point p, format_context& ctx) const -> decltype(ctx.out()) {
|
auto format(point p, format_context& ctx) const -> decltype(ctx.out()) {
|
||||||
return write_padded(ctx, [this, p](auto out) -> decltype(out) {
|
return write_padded(ctx, [this, p](auto out) -> decltype(out) {
|
||||||
return fmt::format_to(out, "({}, {})", nested(p.x), nested(p.y));
|
return fmt::format_to(out, "({}, {})", this->nested(p.x),
|
||||||
|
this->nested(p.y));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user