You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2023/10/19 02:51:21 UTC
[logging-log4cxx] 01/01: Prevent SonarCloud warning
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch quiet_sonar_cloud
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit 0e71de651e104ca66f8cf378b51cb84494cc1fdd
Author: Stephen Webb <sw...@gmail.com>
AuthorDate: Thu Oct 19 13:51:00 2023 +1100
Prevent SonarCloud warning
---
src/main/include/log4cxx/helpers/widelife.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/main/include/log4cxx/helpers/widelife.h b/src/main/include/log4cxx/helpers/widelife.h
index aee30157..76197166 100644
--- a/src/main/include/log4cxx/helpers/widelife.h
+++ b/src/main/include/log4cxx/helpers/widelife.h
@@ -34,6 +34,9 @@ class WideLife
{
public:
template <class... Args>
+#if defined(__cpp_concepts) && __cpp_concepts >= 201500
+ requires !std::same_as<WideLife, Args>
+#endif
WideLife(Args&&... args)
{
new(&storage) T(std::forward<Args>(args)...);