From 4624610e45ef4da865be25cc32a6d2edb56bdf2f Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 1 Jan 2023 16:38:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E2=80=98to=5Fstring=E2=80=99=20is=20not?= =?UTF-8?q?=20a=20member=20of=20=E2=80=98imp::log=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/libimp/log.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/libimp/log.h b/include/libimp/log.h index ac423f6..97958ee 100644 --- a/include/libimp/log.h +++ b/include/libimp/log.h @@ -85,12 +85,6 @@ std::string context_to_string(context const &l_ctx) noexcept { namespace detail { -/// \brief Custom defined fmt_to method for imp::fmt -template -bool tag_invoke(decltype(::LIBIMP::fmt_to), fmt_context &f_ctx, context const &l_ctx) noexcept { - return ::LIBIMP::log::to_string(f_ctx, l_ctx); -} - enum out_type : unsigned { out_none = 0x0, out_string = 0x1, @@ -137,6 +131,12 @@ public: } }; +/// \brief Custom defined fmt_to method for imp::fmt +template +bool tag_invoke(decltype(::LIBIMP::fmt_to), fmt_context &f_ctx, context const &l_ctx) noexcept { + return ::LIBIMP::log::context_to_string(f_ctx, l_ctx); +} + } // namespace detail class printer {