Dependency Injection framework for C++

helpermethod picture helpermethod · Dec 17, 2010 · Viewed 36.1k times · Source

Is there a DI framework comparable to Google Guice? And what does Google use?

Answer

Adrian Petrescu picture Adrian Petrescu · Dec 17, 2010

There is nothing as mature or standard as Guice in the C++ world. However, some people have put together simplistic implementations on their own. Here's a couple.

You're unlikely to be satisfied by any of these.

If you really wanted to put in the effort to rally the world around a DI framework for C++, probably the way to go about it would be to make a proposal to the Boost guys.