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

Optionally generate C++11 MoveConstructible types

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.3
    • C++ - Compiler
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: