pessimizing move

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.6
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 13 (04/22/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.
      

            Assignee:
            Waley Chen (Inactive)
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: