使用前向声明和成员指针,减少需要引用的头文件。前向声明配合指针可以将头文件引用从头文件转移到源文件 ``` class B; class A{ std::shared_ptr b; } ``` Previous 多线程注意事项 Next PBO CATALOG FEATURED TAGS opengl english ffmpeg blender gtest unit test 读书笔记 fbx linux learn C++ c++ codeCommon crash debug gerrit git svg texture