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

Have stdx::variant unconditionally implemented by mpark

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      mpark's excellent variant implementation is conditionally used by us if we type stdx::variant and <variant> is not present. Since this is never the case on any current compiler, we are always using an inferior implementation. Furthermore std::visit is not implemented by one of our current compilers, leading to <variant> being incomplete but chosen over mpark anyway.

      We should remove the ifdef conditions on mpark::variant so it is always chosen as the implementation of stdx::variant. The standard library version is now always available through std:: anyway.

            Assignee:
            jacob.evans@mongodb.com Jacob Evans
            Reporter:
            jacob.evans@mongodb.com Jacob Evans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: