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

MultikeynessTrie fails to compile when kContainerImpl = STD

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • QO 2023-06-12, QO 2023-06-26

      Currently, MultikeynessTrie uses opt::unordered_map, which is an alias for either std::unordered_map or stdx::unordered_map depending on a compile-time flag (kContainerImpl). One of these is failing to compile. The problem is that the map contains MultikeynessTrie by value: some but not all map types support this, because they use some pointer / indirection internally.

      Let's make sure MultikeynessTrie compiles regardless of the value of kContainerImpl. One way is to have MultikeynessTrie use std::map directly instead of opt::unordered_map.

            Assignee:
            maya.srikanth@mongodb.com Maya Srikanth (Inactive)
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: