Skip to content

Questions #2

@DenisYaroshevskiy

Description

@DenisYaroshevskiy

Hi

This align confused me:

auto align(char* buf_start) -> char* {

I thought that when you do placement new, you should automatically get the aligned address.
And also that aligned_storage should have sufficient size to store anything of that size or less.

Is this to support custom aligned types and arbitrary buffer sizes?
What are you trying to achieve?

Why do you use RTTI instead of strategy pattern?

return x && y && (std::type_index(typeid(*x)) == std::type_index(typeid(*y)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions