Cyclic dependency between header files

后端 未结 4 968
长情又很酷
长情又很酷 2020-11-29 11:45

I\'m trying to implement a tree-like structure with two classes: Tree and Node. The problem is that from each class I want to call a function of th

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 12:11

    Can you but the constructor/destructor bodies in a .cxx file? You could include Tree.h there.

提交回复
热议问题