Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3382

TBase class for C++ Library

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      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:

      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;
      }
      

      Attachments

        Issue Links

          Activity

            People

              beberg Adam Beberg
              beberg Adam Beberg
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified