protocol: fix logm template checks

This commit is contained in:
Vaxry 2024-08-18 22:54:47 +02:00
parent bf611fbbf3
commit fa12efdd2a

View file

@ -32,7 +32,7 @@
} else if (level == LOG || level == INFO || level == TRACE) { \ } else if (level == LOG || level == INFO || level == TRACE) { \
oss << "[" << EXTRACT_CLASS_NAME() << "] "; \ oss << "[" << EXTRACT_CLASS_NAME() << "] "; \
} \ } \
if constexpr (std::is_same_v<decltype(__VA_ARGS__), std::string>) { \ if constexpr (std::tuple_size<decltype(std::make_tuple(__VA_ARGS__))>::value == 1 && std::is_same_v<decltype(__VA_ARGS__), std::string>) { \
oss << __VA_ARGS__; \ oss << __VA_ARGS__; \
Debug::log(level, oss.str()); \ Debug::log(level, oss.str()); \
} else { \ } else { \