mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
fix: ‘u’ was not declared in this scope
This commit is contained in:
parent
16c16ad3d0
commit
87279a1299
@ -53,10 +53,10 @@ template <typename T>
|
|||||||
class has_fn_output {
|
class has_fn_output {
|
||||||
static std::integral_constant<out_type, out_none> check(...);
|
static std::integral_constant<out_type, out_none> check(...);
|
||||||
|
|
||||||
template <typename U, typename = decltype(u->output(log::level::trace, std::declval<std::string>()))>
|
template <typename U, typename = decltype(std::declval<U &>().output(log::level::trace, std::declval<std::string>()))>
|
||||||
static std::integral_constant<out_type, out_string> check(U *u);
|
static std::integral_constant<out_type, out_string> check(U *u);
|
||||||
|
|
||||||
template <typename U, typename = decltype(u->output(std::declval<log::context>()))>
|
template <typename U, typename = decltype(std::declval<U &>().output(std::declval<log::context>()))>
|
||||||
static std::integral_constant<out_type, out_context> check(U *u);
|
static std::integral_constant<out_type, out_context> check(U *u);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user