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); } };