THRIFT-895. cpp: By default, generate enums as class-scoped enums
authorDavid Reiss <dreiss@apache.org>
Fri, 10 Sep 2010 23:00:40 +0000 (23:00 +0000)
committerDavid Reiss <dreiss@apache.org>
Fri, 10 Sep 2010 23:00:40 +0000 (23:00 +0000)
commitb6c50e56583d503ab7dcc843d4e09d99f8010ef3
tree286e1ed8025f0cd60cfeb717b989d2ee097c77a6
parent13ad873d1815da49cf17f7a52c98895bfde011e1
THRIFT-895. cpp: By default, generate enums as class-scoped enums

Most of the other Thrift languages either have enum values that are
scoped to the type or emulate enums in that way.  Now C++ does the same
by default.  "enum Foo" in a .thrift file will be generated as Foo::type
so the values can be called Foo::value1, etc.  The "pure_enums" compiler
option restores the old behavior.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996015 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_cpp_generator.cc