google / google/fruit

Use of Annotations with Factories

Open
#124 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.9k
Forks
202
PR merge metrics
No merged PRs in 30d

Description

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>`), 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.