Skip to content

Use of Annotations with Factories #124

@Gavvers

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?

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