[ https://issues.apache.org/jira/browse/THRIFT-3382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14992369#comment-14992369 ]
Hudson commented on THRIFT-3382: -------------------------------- SUCCESS: Integrated in Thrift #1714 (See [https://builds.apache.org/job/Thrift/1714/]) THRIFT-3382 - C++: TBase class for generated structs added (hcorg: rev 673c94137aa91e3efc2ee08bbd88f6ba1bbf3a2f) * compiler/cpp/src/generate/t_cpp_generator.cc * lib/cpp/src/thrift/TBase.h * lib/cpp/Makefile.am > TBase class for C++ Library > --------------------------- > > Key: THRIFT-3382 > URL: https://issues.apache.org/jira/browse/THRIFT-3382 > Project: Thrift > Issue Type: Bug > Components: C++ - Compiler, C++ - Library > Affects Versions: 0.9.3 > Reporter: Adam Beberg > Assignee: Adam Beberg > Fix For: 0.9.4 > > Original Estimate: 24h > Remaining Estimate: 24h > > Unlike Other languages, C++ is missing a TBase class (the majority of other > langugaes call it that) that all generated structs always inherit from. This > prevents simple utility functions, and forces ugly template use. > Something like this: > {code:title=thtift/TBase.h} > class TBase { > public: > virtual ~TBase(); > virtual uint32_t read(::apache::thrift::protocol::TProtocol* iprot); > virtual uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)