Skip to content

making copyable_function constexpr #29

@JeffGarland

Description

@JeffGarland

During c++ now there was conversation about if this could be constexpr.

This won't work with member function

https://github.com/bemanproject/copyable_function/blob/main/include/beman/copyable_function/copyable_function_helper.h#L21

you can do it by making it union with void * and in constexpr always allocate and using use construct_at

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