mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update README.md
This commit is contained in:
parent
01b3724c48
commit
b73616ce29
@ -293,7 +293,7 @@ void multi_sink_example2()
|
|||||||
template<>
|
template<>
|
||||||
struct fmt::formatter<my_type> : fmt::formatter<std::string>
|
struct fmt::formatter<my_type> : fmt::formatter<std::string>
|
||||||
{
|
{
|
||||||
auto format(my_type my, format_context &ctx) -> decltype(ctx.out())
|
auto format(my_type my, format_context &ctx) const -> decltype(ctx.out())
|
||||||
{
|
{
|
||||||
return format_to(ctx.out(), "[my_type i={}]", my.i);
|
return format_to(ctx.out(), "[my_type i={}]", my.i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user