Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.comx>2022-10-31 19:12:47 +0300
committergabime <gmelman1@gmail.comx>2022-10-31 19:12:47 +0300
commit31d6935b97ff47ee8e040fed71619ef3be25efdb (patch)
tree84817dd91ff879fe4ee19312bf42cfa9897af72e
parent14a29c03eb15783e798c1978f2613c0d6732cbe0 (diff)
updated readme
-rw-r--r--README.md8
1 files changed, 1 insertions, 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<my_type> : formatter<std::string>
+struct fmt::formatter<my_type> : fmt::formatter<std::string>
{
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()
{