From b8b16e49a5c2ab21015fc1536c1adaa6debc784d Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 4 Dec 2021 14:44:31 +0200 Subject: [PATCH] Fixed example for custom_type --- example/example.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index 20f1d6cb..5e5f85d3 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -260,12 +260,13 @@ struct my_type int i = 0; }; +namespace fmt_lib = spdlog::fmt_lib; template<> -struct spdlog::fmt_lib::formatter : spdlog::fmt_lib::formatter +struct fmt_lib::formatter : fmt_lib::formatter { auto format(my_type my, format_context &ctx) { - return formatter::format(spdlog::fmt_lib::format("[my_type i={}]", my.i), ctx); + return formatter::format(fmt_lib::format("[my_type i={}]", my.i), ctx); } };