Skip to content

Commit

Permalink
Namespace-qualify format_to to avoid conflict with std::format_to
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed May 15, 2022
1 parent f6f920a commit 5ab9d39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api.rst
Expand Up @@ -227,8 +227,8 @@ template and implement ``parse`` and ``format`` methods::
auto format(const point& p, FormatContext& ctx) const -> decltype(ctx.out()) {
// ctx.out() is an output iterator to write to.
return presentation == 'f'
? format_to(ctx.out(), "({:.1f}, {:.1f})", p.x, p.y)
: format_to(ctx.out(), "({:.1e}, {:.1e})", p.x, p.y);
? fmt::format_to(ctx.out(), "({:.1f}, {:.1f})", p.x, p.y)
: fmt::format_to(ctx.out(), "({:.1e}, {:.1e})", p.x, p.y);
}
};

Expand Down

0 comments on commit 5ab9d39

Please sign in to comment.