Take this enum as an example to the question
enum
{
one = 1
, two = 2
, three = 3
};
I've compiled this enumeration with the following compilers without issue:
- Visual Studio 2010
- IAR Embedded Workbench for ARM 6.21
- g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
- gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Is this syntax guaranteed to be supported under C99 and C++03?
With that said, I'd like to avoid a discussion about why use this syntax.