Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Lange <tiolangit@outlook.com>2022-05-06 18:05:38 +0300
committerTimo Lange <timo.lange@vwif.com>2022-05-06 18:06:35 +0300
commit2eedf1fa28c60ed5dbed9e7d7fd73ea6026404bd (patch)
tree8de7e9f89c59c224d8b76738c288219cecf4da8b /include/spdlog
parent0a875d7b2dcb9c14359d846c3be2cb2b6d9c0494 (diff)
remove usage of forward args
Diffstat (limited to 'include/spdlog')
-rw-r--r--include/spdlog/sinks/android_sink.h12
1 files 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<int ID = BufferID, typename... Args>
- typename std::enable_if<ID == static_cast<int>(log_id::LOG_ID_MAIN), int>::type android_log(Args... args)
+ template<int ID = BufferID>
+ typename std::enable_if<ID == static_cast<int>(log_id::LOG_ID_MAIN), int>::type android_log(int prio, const char *tag, const char *text)
{
- return __android_log_write(std::forward<Args>(args)...);
+ return __android_log_write(prio, tag, text);
}
- template<int ID = BufferID, typename... Args>
- typename std::enable_if<ID != static_cast<int>(log_id::LOG_ID_MAIN), int>::type android_log(Args... args)
+ template<int ID = BufferID>
+ typename std::enable_if<ID != static_cast<int>(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>(args)...);
+ return __android_log_buf_write(ID, prio, tag, text);
}
static android_LogPriority convert_to_android_(spdlog::level::level_enum level)