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

Replace WithAlignment inheritance with std::aligned_storage

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Service Arch 2021-11-01
    • 1

      WithAlignment<T> is an unnecessary and confusing feature of util that we can get rid of. It has T as a base class, which means it can't be used with arrays, primitive types, or final classes, and its constructor overload set is imperfect, and can't do aggregate initialization.

      We can easily replace the 2 users of this thing with std::aligned_storage instead.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: