Ray's playground

 

Item31: Minimize compilation dependencies between files.(Effective C++)

  • The general idea behind minimizing compilation dependencies is to depend on declarations instead of definitions. Two approaches based on this idea are Handle classes and Interface classes.

  • Library header files should exist in full and declaration-only forms. This applies regardless of whether templates are involved.

posted on 2011-03-31 23:52  Ray Z  阅读(208)  评论(0编辑  收藏  举报

导航