error: changes meaning of ‘xxx’ from ‘class xxx’ [-fpermissive] class model

/home/wss/linux/Qt_Project/03exprPro/exprPro/model.h:6: error: changes meaning of ‘model’ fromclass model’ [-fpermissive]
 class model
       ^~~~~

 原因是在另一个类里,定义了一个这个类的指针。

至于为什么定义了这个就报错呢。暂时没搞明白,我是跟着教程做的,人家没事,我这报错!!!

懒惰不会让你一下子跌到 但会在不知不觉中减少你的收获; 勤奋也不会让你一夜成功 但会在不知不觉中积累你的成果 越努力,越幸运。
原文地址:https://www.cnblogs.com/Rainingday/p/12588962.html