rm5248 commented on issue #344:
URL: 
https://github.com/apache/logging-log4cxx/issues/344#issuecomment-1925749914

   Looking at it a bit more, the better solution may actually be:
   
   1. For GCC/clang before C++20, use `##__VA_ARGS__`
   2. For MSVC before C++20, we may be able to use `__VA_ARGS__` directly("[The 
traditional Microsoft C++ implementation suppresses a trailing comma if no 
arguments are passed to the 
ellipsis.](https://learn.microsoft.com/en-us/cpp/preprocessor/variadic-macros?view=msvc-170)")
   3. If a different compiler, use the current behavior until somebody can 
provide a patch for their specific compiler.
   4. If C++ 20, use the `VA_OPT` macro to align with the standard


-- 
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]

Reply via email to