From 2a45eff693d70680f74c2ca7bb1da6bdf53d6126 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 4 Dec 2021 14:42:12 +0200 Subject: [PATCH] Fixed example for custom_type --- example/example.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index 71119758..f38416ad 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -261,11 +261,11 @@ struct my_type }; template<> -struct std::formatter : std::formatter +struct spdlog::fmt_lib::formatter : spdlog::fmt_lib::formatter { auto format(my_type my, format_context &ctx) { - return formatter::format(std::format("[my_type i={}]", my.i), ctx); + return formatter::format(spdlog::fmt_lib::format("[my_type i={}]", my.i), ctx); } };