Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-1303

Document preference for C++11 rvalue and move semantics in style guide

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • documentation
    • None

    Description

      Found this handy guide to C++11 move semantics and rvalue references:
      https://www.chromium.org/rvalue-references

      We should probably follow most of their guidelines - in particular, not
      going too crazy with move semantics, but probably slowly migrating away
      from 'foo.Pass()' to 'std::move(foo)'. I'll grab the patches over from
      Chromium-base to support std::move with our utility stuff.

      Document this preference.

      Attachments

        Issue Links

          Activity

            People

              misty M Linville
              misty M Linville
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: