vanand123 commented on issue #545:
URL:
https://github.com/apache/logging-log4cxx/issues/545#issuecomment-3364401602
> The minimum version is C++11. Could you post the entire error that you're
getting? It's possible that there is some incorrect detection of the C++
standard.
@rm5248 Please find detailed error as below:
```
include/log4cxx/helpers/widelife.h:45:56: error: expected primary-expression
before ')' token
45 | requires (!std::same_as<WideLife, Arg0>)
| ^
```
Have tried below change, with this I'm not seeing above issue:
```
--- a/src/main/include/log4cxx/helpers/widelife.h
+++ b/src/main/include/log4cxx/helpers/widelife.h
@@ -19,7 +19,7 @@
#define _LOG4CXX_HELPERS_WIDELIFE_H
#include <log4cxx/log4cxx.h>
-#if defined(__cpp_concepts) && __cpp_concepts >= 201500
+#if defined(__cpp_concepts) && __cplusplus >= 202002L
#include <concepts>
#endif
@@ -40,7 +40,7 @@ public:
new(&storage) T();
}
template <class Arg0, class... Args>
-#if defined(__cpp_concepts) && __cpp_concepts >= 201500
+#if defined(__cpp_concepts) && __cplusplus >= 202002L
requires (!std::same_as<WideLife, Arg0>)
#endif
WideLife(Arg0&& arg0, Args&&... args)
```
But still seeing crash with same stacktrace
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]