Skip to content

Suggestion: Allow users of function2 to know easily whether their lambdas are stored inplace #36

Open
@romange

Description

@romange

@Naios Suggestion

For example,

using MyFunction =  fu2::function_base<...>;
auto cb = [foo, bar] {};
static_assert(MyFunction::is_inplace(cb), "Lambda too big!")

This could be useful to maintain code over time and not to break performance-related assumptions..

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions