How to construct a class with a constant reference cycle?

前端 未结 0 2010
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-08 09:57

I am writing a toy program and I accidentally created a class that I don\'t know how to construct.

struct Parent;

struct Data {
  const Parent &parent;
  //          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题