[ https://issues.apache.org/jira/browse/THRIFT-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier resolved THRIFT-72. ------------------------------- Resolution: Won't Fix Assignee: (was: Alexander Shigin) issue is too old, please create a new issue and patch if you need this. see http://thrift.apache.org/docs/HowToContribute/ > C++ structure constructor > -------------------------- > > Key: THRIFT-72 > URL: https://issues.apache.org/jira/browse/THRIFT-72 > Project: Thrift > Issue Type: Improvement > Components: C++ - Compiler > Affects Versions: 0.2 > Environment: Tested on debian stable (etch) > Reporter: Eric Anderson > Priority: Minor > Attachments: > 0001-THRIFT-72.-cpp-Add-a-struct-constructor-that-takes.patch, > structure-constructor.patch, thrift-cpp-constructor-v2.patch, > thrift-cpp-constructor-v3.patch, thrift-cpp-constructor-v4.patch, > thrift-cpp-constructor-v5.patch > > > We're mostly using the C++ interface to thrift, and I wanted to be > able to initialize structures more easily than a whole series of lines > that set each of the parameters separately. Attached is a patch that > adds a constructor to the C++ objects that allow you to fully > initialize an object in a single call. I added two tests for this, > one in the DebugProtoTest.cpp file, and one in the > OptionalRequiredTest.cpp. The patch is against the 20080411p1 release. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira