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

C++ code should print enums as strings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0
    • C++ - Compiler
    • None

    Description

      THRIFT-2067 added operator<< to the C++ generated code, which is great, but enums are printed as numbers rather than their string representation. It would be great if the generated code printed them as a string instead. There might be some backwards-compatibility concerns (if users have already defined their own versions, then thrift's version would cause compile errors), not sure how important you guys think those are.

      Other thoughts/concerns? I am willing to work on a patch if no one else is able to work on it.

      Attachments

        Issue Links

          Activity

            People

              jking3 James E. King III
              viveksjain Vivek Jain
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: