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

Thrift generated streaming operators added in 0.9.2 cannot be overridden

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2, 0.9.3
    • Fix Version/s: 0.9.3
    • Component/s: C++ - Compiler
    • Labels:
      None

      Description

      I work on one project that has been using thrift-0.8.0 and I am updating it to 0.9.3. The project defines streaming operators for "operator <<" on a variety of thrift-generated types.

      The fix added in THRIFT-2067 provides similar but not identical functionality however it was done in a way that cannot be overridden, and this causes projects upgrading from versions prior to 0.9.2 with their own streaming operators to fail to compile.

      One way to make the streaming operator virtual is to follow the example provided in http://stackoverflow.com/questions/5189614/operator-and-inheritance

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                jking3 James E. King III
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: