Skip to content

C++17之后才保证new一定对齐。 #38

@ravenxrz

Description

@ravenxrz

C *p = new C; // 可以,new T 总是保证对齐到 alignof(T)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions