mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
fix: ‘to_string’ is not a member of ‘imp::log’
This commit is contained in:
parent
983673266e
commit
4624610e45
@ -85,12 +85,6 @@ std::string context_to_string(context<T...> const &l_ctx) noexcept {
|
||||
|
||||
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 {
|
||||
out_none = 0x0,
|
||||
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
|
||||
|
||||
class printer {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user