Comment #2 on issue 419 by [email protected]: enumerators have comma on
last value
http://code.google.com/p/protobuf/issues/detail?id=419
The trailing comma at the end of an enumerator list was added in the C++11
standard. It is not in the C++03 standard. Is protobuf designed to only
work with C++11?
From "7.2 Enumeration declarations" in ISO/IEC 14882:2003(E) (C++03):
enum-name:
identifier
enum-specifier:
"enum" identifier(opt) "{" enumerator-list(opt) "}"
enumerator-list:
enumerator-definition
enumerator-list "," enumerator-definition
enumerator-definition:
enumerator
enumerator "=" constant-expression
enumerator:
identifier
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.