fix: ‘u’ was not declared in this scope

This commit is contained in:
mutouyun 2022-11-19 22:37:49 +08:00
parent 16c16ad3d0
commit 87279a1299

View File

@ -53,10 +53,10 @@ template <typename T>
class has_fn_output {
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);
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);
public: