Skip to content

Commit

Permalink
Prevent SonarCloud warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Oct 19, 2023
1 parent 1681351 commit 0e71de6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/include/log4cxx/helpers/widelife.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)...);
Expand Down

0 comments on commit 0e71de6

Please sign in to comment.