Skip to content

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

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..

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions