From 2eedf1fa28c60ed5dbed9e7d7fd73ea6026404bd Mon Sep 17 00:00:00 2001 From: Timo Lange Date: Fri, 6 May 2022 17:05:38 +0200 Subject: [PATCH] remove usage of forward args --- include/spdlog/sinks/android_sink.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index f2289472..07dbeea8 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -76,16 +76,16 @@ private: // There might be liblog versions used, that do not support __android_log_buf_write. So we only compile and link against // __android_log_buf_write, if user explicitely provides a non-default log buffer. Otherwise, when using the default log buffer, always // log via __android_log_write. - template - typename std::enable_if(log_id::LOG_ID_MAIN), int>::type android_log(Args... args) + template + typename std::enable_if(log_id::LOG_ID_MAIN), int>::type android_log(int prio, const char *tag, const char *text) { - return __android_log_write(std::forward(args)...); + return __android_log_write(prio, tag, text); } - template - typename std::enable_if(log_id::LOG_ID_MAIN), int>::type android_log(Args... args) + template + typename std::enable_if(log_id::LOG_ID_MAIN), int>::type android_log(int prio, const char *tag, const char *text) { - return __android_log_buf_write(ID, std::forward(args)...); + return __android_log_buf_write(ID, prio, tag, text); } static android_LogPriority convert_to_android_(spdlog::level::level_enum level)