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

Add MONGO_NO_UNIQUE_ADDRESS macro

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • Service Arch 2023-08-07
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      We can't use [[no_unique_address]] attribute directly in our code because we need to support MSVC builds.

      https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/#c20-no_unique_address

      MSVC spells this attribute differently for compatibility reasons. In our codebase, we need a macro use instead of using the attribute directly.

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: