[SERVER-24161] pessimizing move Created: 16/May/16  Updated: 20/May/16  Resolved: 16/May/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Kaloian Manassiev
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-24108 Pessimizing move warning in chunktest... Closed
Operating System: ALL
Sprint: Sharding 15 (06/03/16)
Participants:

 Description   

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));
                         ^~~~~~~~~~                           ~


Generated at Thu Feb 08 04:05:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.