2009-03-11 C++0x 列挙子の最後のカンマ C++ C++03でも以下のコードが通るコンパイラはありましたが enum { Foo, }; C++03の規格上は認めてなかったみたいです。 7.2 Enumeration declarations...enum-specifier: enum identifier opt { enumerator-list opt } これが、C++0xでは認められるみたいです。 7.2 Enumeration declarations...enum-specifier: enum-head { enumerator-list opt } enum-head { enumerator-list , } core issue 518 Trailing comma following enumerator-listC++0x言語拡張まとめ