pessimizing move

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL
    • Sharding 15 (06/03/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      src/mongo/dbtests/chunktests.cpp:68:26: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
              _chunkRangeMap = std::move(_constructRanges(_chunkMap));
                               ^
      src/mongo/dbtests/chunktests.cpp:68:26: note: remove std::move call here
              _chunkRangeMap = std::move(_constructRanges(_chunkMap));
                               ^~~~~~~~~~                           ~
      

              Assignee:
              Kaloian Manassiev
              Reporter:
              Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: