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:
authorSimon-Janos <Simon.Janos@gmail.com>2022-07-27 08:16:36 +0300
committerSimon-Janos <Simon.Janos@gmail.com>2022-07-27 08:16:36 +0300
commit26f69ee9d203d7702b7f4fcb9d37e312415e1785 (patch)
treebcdcefdf7e12b4778cb03894fc6013c87a3ea1d0 /include/spdlog
parent61879237e9836f397c567dd75d0983eb338432b2 (diff)
Re-introduce redundant std::move at return for old GCC (before version 5) inside an ifdef for e.g. CentOS 7
Diffstat (limited to 'include/spdlog')
-rw-r--r--include/spdlog/pattern_formatter-inl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/spdlog/pattern_formatter-inl.h b/include/spdlog/pattern_formatter-inl.h
index 2559454b..01afbe6f 100644
--- a/include/spdlog/pattern_formatter-inl.h
+++ b/include/spdlog/pattern_formatter-inl.h
@@ -1053,7 +1053,11 @@ SPDLOG_INLINE std::unique_ptr<formatter> pattern_formatter::clone() const
}
auto cloned = details::make_unique<pattern_formatter>(pattern_, pattern_time_type_, eol_, std::move(cloned_custom_formatters));
cloned->need_localtime(need_localtime_);
+#if defined(__GNUC__) && __GNUC__ < 5
+ return std::move(cloned);
+#else
return cloned;
+#endif
}
SPDLOG_INLINE void pattern_formatter::format(const details::log_msg &msg, memory_buf_t &dest)