[SERVER-23749] pessimizing move Created: 15/Apr/16  Updated: 16/May/16  Resolved: 15/Apr/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.3.6

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Waley Chen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 13 (04/22/16)
Participants:

 Description   

src/mongo/util/fast_clock_source_factory.cpp:46:9: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        std::move(stdx::make_unique<SystemClockSource>()), granularity);
        ^
src/mongo/util/fast_clock_source_factory.cpp:46:9: note: remove std::move call here
        std::move(stdx::make_unique<SystemClockSource>()), granularity);
        ^~~~~~~~~~                                      ~
1 warning generated.



 Comments   
Comment by Githook User [ 15/Apr/16 ]

Author:

{u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}

Message: SERVER-23749 pessimizing move
Branch: master
https://github.com/mongodb/mongo/commit/569657078f0cdaa3abd339a1b8409d5edaff5b01

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