mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-05 11:27:40 +00:00
Fix invalid fmt::formatter<>::format return type (#3895)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
parent
df6e7b22f7
commit
c17816cb4a
@ -140,7 +140,7 @@ without implementing them yourself. For example::
|
||||
// parse is inherited from formatter<string_view>.
|
||||
|
||||
auto format(color c, format_context& ctx) const
|
||||
-> format_parse_context::iterator;
|
||||
-> format_context::iterator;
|
||||
};
|
||||
|
||||
// color.cc:
|
||||
@ -148,7 +148,7 @@ without implementing them yourself. For example::
|
||||
#include <fmt/format.h>
|
||||
|
||||
auto fmt::formatter<color>::format(color c, format_context& ctx) const
|
||||
-> format_parse_context::iterator {
|
||||
-> format_context::iterator {
|
||||
string_view name = "unknown";
|
||||
switch (c) {
|
||||
case color::red: name = "red"; break;
|
||||
|
Loading…
Reference in New Issue
Block a user