Skip to content

Use of Annotations with Factories #124

Description

@Gavvers

I have been reading and re-reading the wiki as well as the code comments, but I am still very unclear on how Annotations can be used with factory injection (std::function<std::unique_ptr<T>>), if that it even supported. The comment on bind() in component.h says,

* All these cases support annotated injection, just wrap I and/or C in fruit::Annotated<> if desired. For example:

The example only shows the simple case. How does it work with factories?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions