Thrift: More constant enums.
authorDavid Reiss <dreiss@apache.org>
Mon, 6 Aug 2007 20:38:18 +0000 (20:38 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 6 Aug 2007 20:38:18 +0000 (20:38 +0000)
commit202111d2e9cb351ac77929f573569625a3937308
tree340bdf6d0ccf35f67f9abc58cf25a50bf2a82cba
parent6f226558d605ab7525d5410a5f4c2feb09594081
Thrift: More constant enums.

Summary:
Make enum constants as structure defaults work.
Make enum constants as constant map keys work.
Un-break the generated skeleton servers.

Reviewed By: mcslee

Test Plan:
cd test
../compiler/cpp/thrift -cpp ConstantsDemo.thrift
g++ -I../lib/cpp/src -c gen-cpp/*.cpp
Also compared the generated output to the old generated output.

Revert Plan: ok

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