Replace WithAlignment inheritance with std::aligned_storage

XMLWordPrintableJSON

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

      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
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: