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

Replace WithAlignment inheritance with std::aligned_storage

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2021-11-01
    • 1

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: