-
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.
Item31: Minimize compilation dependencies between files.(Effective C++)
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:Item 33: Avoid hiding inherited names(Effective C++)
下一篇:Item 30: Understand the ins and outs of inlining.(Effective C++)
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
51c大模型~合集31大模型
-
51c自动驾驶~合集31
驾驶
自动驾驶