mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06: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 {
|
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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user