Dependency injection framework for C++ applications
Dependency injection framework for C++
fruit$ g++ -I/usr/local/include myapp.cpp -o myapp$ cat > component.cpp << 'EOF'
#include "fruit/fruit.h"
using namespace fruit;
Component<MyService> getComponent() {
return createComponent();
}
EOF$ g++ -L/usr/local/lib myapp.cpp -o myapp -lfruit