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
       ^~~~~

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

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

 

posted @ 2020-03-28 19:46  不明白就去明白  阅读(1800)  评论(2编辑  收藏  举报