blob: 14658b5ea55f220925a75a7c10049575e27fa92a [file] [log] [blame]
#include <fruit/fruit.h>
struct X {
INJECT(X()) = default;
};
fruit::Component<X> getXComponent() {
return fruit::createComponent();
}
int main() {
fruit::Injector<X> injector(getXComponent);
injector.get<X*>();
}