If we have a piece of code like this:
there is a dangling comma after 2 if SOMETHING and SOMEOTHER is false, or after 3 if SOMETHING is true, but SOMEOTHER is false.Code:int arr[] = { 1, 2, #if SOMETHING 3, #endif #if SOMEOTHER 4 #endif };
Is this valid in the current standard of C++?
[The compilers I've used accepts it - so it's more a question of "are we allowed to do this".]
--
Mats