Dependency injection in C++

前端 未结 8 1694
囚心锁ツ
囚心锁ツ 2020-12-13 04:40

This is also a question that I asked in a comment in one of Miško Hevery\'s google talks that was dealing with dependency injection but it got buried in the comments.

<
8条回答
  •  不思量自难忘°
    2020-12-13 05:21

    This is interesting, DI in C++ using templates:

    http://adam.younglogic.com/?p=146

    I think the author is making the right moves as to not translate Java DI into C++ too literally. Worth the read.

提交回复
热议问题