Skip to content

Consider changing the callbacks to std::function #429

Description

@clarencelocke

Is your feature request related to a problem?

Right now the callbacks only support a function proc (or non-capturing lambda) on the callback. When you need more context (e.g., an object pointer or reference) you are currently forced to have this information come from globals. This makes things very cumbersome in some circumstances, if not impossible to work around.

Describe the solution you'd like?

A replacement and/or addition of some form of Callable (e.g., std::function<>) for the callbacks in the library.

Describe alternatives you've considered

No response

Additional context

No response

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

    Labels

    feature-requestAdd new feature to the library

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions