From 31d6935b97ff47ee8e040fed71619ef3be25efdb Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 31 Oct 2022 18:12:47 +0200 Subject: [PATCH] updated readme --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 6a92fea2..46adb9f0 100644 --- a/README.md +++ b/README.md @@ -269,20 +269,14 @@ void multi_sink_example2() --- #### User defined types ```c++ -#ifdef SPDLOG_USE_STD_FORMAT -namespace std { -#else -namespace fmt { -#endif template<> -struct formatter : formatter +struct fmt::formatter : fmt::formatter { auto format(my_type my, format_context &ctx) -> decltype(ctx.out()) { return format_to(ctx.out(), "[my_type i={}]", my.i); } }; -} void user_defined_example() {