Is there a DI structure comparable to Google Guice? And what does Google use?
There is nothing mature or standard like Guice in the C ++ world. However, some people have combined simplified implementations on their own. Here is a couple.
You are unlikely to be satisfied with any of them.
If you really wanted to make an effort to rally the world around the DI framework for C ++, perhaps the way for this is to make an offer for the Boost guys.
I am the author of wallaroo . It is actively developing and has the following functions:
Any comments, suggestions or requests are welcome.
There is a recent one that looks very interesting, called Hypodermic , I have not tested it, but it looks quite active
I am currently creating one of the named sauce , whose design (and name) is directly inspired by guice. I still find it alpha, but you may find it useful.