在C ++项目中限制编译依赖关系的一些技术是什么? [英] What are some techniques for limiting compilation dependencies in C++ projects?

查看:119
本文介绍了在C ++项目中限制编译依赖关系的一些技术是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C ++项目中,编译依赖关系使得软件项目难以维护。在模块和模块之间限制依赖关系的一些最佳做法是什么?

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 module and across modules?

推荐答案


  • 转发声明

  • 抽象界面

  • Pimpl成语

    • Forward Declarations
    • Abstract Interfaces
    • The Pimpl Idiom
    • 这篇关于在C ++项目中限制编译依赖关系的一些技术是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆