fix constraints

pull/2690/head
M. Galib Uludag 2 years ago
parent 74b369ecc6
commit bd0a474b16

@ -141,37 +141,37 @@ public:
log(source_loc{}, lvl, msg);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void trace(format_string_t<Args...> fmt, Args &&...args)
{
log(level::trace, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void debug(format_string_t<Args...> fmt, Args &&...args)
{
log(level::debug, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void info(format_string_t<Args...> fmt, Args &&...args)
{
log(level::info, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void warn(format_string_t<Args...> fmt, Args &&...args)
{
log(level::warn, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void error(format_string_t<Args...> fmt, Args &&...args)
{
log(level::err, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void critical(format_string_t<Args...> fmt, Args &&...args)
{
log(level::critical, fmt, std::forward<Args>(args)...);
@ -225,37 +225,37 @@ public:
log(source_loc{}, lvl, msg);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void trace(wformat_string_t<Args...> fmt, Args &&...args)
{
log(level::trace, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void debug(wformat_string_t<Args...> fmt, Args &&...args)
{
log(level::debug, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void info(wformat_string_t<Args...> fmt, Args &&...args)
{
log(level::info, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void warn(wformat_string_t<Args...> fmt, Args &&...args)
{
log(level::warn, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void error(wformat_string_t<Args...> fmt, Args &&...args)
{
log(level::err, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
void critical(wformat_string_t<Args...> fmt, Args &&...args)
{
log(level::critical, fmt, std::forward<Args>(args)...);

@ -153,37 +153,37 @@ inline void log(level::level_enum lvl, format_string_t<Args...> fmt, Args &&...a
default_logger_raw()->log(source_loc{}, lvl, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void trace(format_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->trace(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void debug(format_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->debug(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void info(format_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->info(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void warn(format_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->warn(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void error(format_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->error(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void critical(format_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->critical(fmt, std::forward<Args>(args)...);
@ -214,37 +214,37 @@ inline void log(level::level_enum lvl, wformat_string_t<Args...> fmt, Args &&...
default_logger_raw()->log(source_loc{}, lvl, fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void trace(wformat_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->trace(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void debug(wformat_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->debug(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void info(wformat_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->info(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void warn(wformat_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->warn(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void error(wformat_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->error(fmt, std::forward<Args>(args)...);
}
template<typename... Args, typename std::enable_if<sizeof...(Args) >= 1, int>::type = 0>
template<typename... Args>
inline void critical(wformat_string_t<Args...> fmt, Args &&...args)
{
default_logger_raw()->critical(fmt, std::forward<Args>(args)...);

Loading…
Cancel
Save