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 {