diff --git a/src/main/include/log4cxx/helpers/widelife.h b/src/main/include/log4cxx/helpers/widelife.h index 8361a569b..5c0073afa 100644 --- a/src/main/include/log4cxx/helpers/widelife.h +++ b/src/main/include/log4cxx/helpers/widelife.h @@ -36,13 +36,17 @@ template class WideLife { public: - template + WideLife() + { + new(&storage) T(); + } + template #if defined(__cpp_concepts) && __cpp_concepts >= 201500 - requires (!std::same_as) + requires (!std::same_as) #endif - WideLife(Args&&... args) + WideLife(Arg0 arg0, Args&&... args) { - new(&storage) T(std::forward(args)...); + new(&storage) T(arg0, std::forward(args)...); } ~WideLife()