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

Specialization of std::move<mongo::WithLock> is not allowed

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2025-03-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      We have a specialization of std::move for mongo::WithLock here. Declaring a full specialization of any standard library function template is UB since C++20 (ref), so this has to be removed. Whatever goal this was trying to accomplish could be done by deleting move/copy operators and/or constructors as appropriate.

            Assignee:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Reporter:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: