Add MONGO_NO_UNIQUE_ADDRESS macro

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: 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
    • 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
              Reporter:
              Billy Donahue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: