Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23749

pessimizing move

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.6
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 13 (04/22/16)

    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.
      

      Attachments

        Activity

          People

            waley.chen Waley Chen
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: