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

Optionally generate C++11 MoveConstructible types

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: C++ - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Presently the cpp compiler only emits copy constructors for generated Thrift types. This is sub-optimal when passing types as parameters to std::bind when there are container fields that have move-constructible STL implementations. Adding rvalue constructors & assignment operators will avoid copies in these cases.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nater Nate Rosenblum
                Reporter:
                nater Nate Rosenblum
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: