Skip to content

How to rewrite new[](size, alignment, alignmentOffset) with an offset? #570

@Qi-Lu

Description

@Qi-Lu

I attempted to rewrite it using the following approach, but it resulted in an error.
void* operator new[](size_t size, size_t alignment, size_t alignmentOffset, const char* pName, int flags, unsigned debugFlags, const char* file, int line) { return ::operator new [](size,static_cast<std::align_val_t>(alignment)); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions