fix: ‘to_string’ is not a member of ‘imp::log’

This commit is contained in:
mutouyun 2023-01-01 16:38:27 +08:00
parent 983673266e
commit 4624610e45

View File

@ -85,12 +85,6 @@ std::string context_to_string(context<T...> const &l_ctx) noexcept {
namespace detail { namespace detail {
/// \brief Custom defined fmt_to method for imp::fmt
template <typename... T>
bool tag_invoke(decltype(::LIBIMP::fmt_to), fmt_context &f_ctx, context<T...> const &l_ctx) noexcept {
return ::LIBIMP::log::to_string(f_ctx, l_ctx);
}
enum out_type : unsigned { enum out_type : unsigned {
out_none = 0x0, out_none = 0x0,
out_string = 0x1, out_string = 0x1,
@ -137,6 +131,12 @@ public:
} }
}; };
/// \brief Custom defined fmt_to method for imp::fmt
template <typename... T>
bool tag_invoke(decltype(::LIBIMP::fmt_to), fmt_context &f_ctx, context<T...> const &l_ctx) noexcept {
return ::LIBIMP::log::context_to_string(f_ctx, l_ctx);
}
} // namespace detail } // namespace detail
class printer { class printer {