Adam Beberg created THRIFT-3382:
-----------------------------------

             Summary: 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


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:

class TBase {
public:
  virtual uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  virtual uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
}

In thrift/TBase.h



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to