Dependency Injection framework for C++ [closed]

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.

  • http://adam.younglogic.com/2008/07/dependency-injection-in-c/ (source for implementation is at the end of the post)
  • http://sourceforge.net/projects/qtioccontainer/ (requires Qt)
  • http://code.google.com/p/autumnframework/ (hasn’t been touched since 2007)
  • http://programmaticallyspeaking.blogspot.com/2010/04/beautiful-dependency-injection-in-c.html (more of a description, really)
  • http://sourceforge.net/projects/cpp-resolver/ (“Alpha” quality)

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)