What are some techniques for limiting compilation dependencies in C++ projects?

后端 未结 4 1197
感动是毒
感动是毒 2021-01-12 17:09

In a C++ project, compilation dependencies can make a software project difficult to maintain. What are some of the best practices for limiting dependencies, both within a m

4条回答
  •  情书的邮戳
    2021-01-12 17:28

    Herb Sutter has a great treatment of this exact topic in Items 26, 27 and 28, "Minimizing Compile-time Dependencies, Parts 1, 2 and 3", in his excellent book Exceptional C++, ISBN: 0201615622.

    alt text http://ak.buy.com/db_assets/prod_images/489/30611489.jpg

    IMHO, this is one of the best C++ programming books available.

提交回复
热议问题