Workaround for gcc 6 (#3810)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov authored and GitHub committed 2024-01-15 08:58:19 -08:00
1 parent 73d91351b4
commit d249fd9f84
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1765,7 +1765,8 @@ FMT_BEGIN_NAMESPACE
template <> struct formatter<point> : nested_formatter<double> {
auto format(point p, format_context& ctx) const -> decltype(ctx.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));
});
}
};