首页 > 其他 > 详细

What's the meaning of unqualified-id?

时间:2019-02-18 14:39:09      阅读:312      评论:0      收藏:0      [点我收藏+]

catch( const std::runtime_error & e)

{

....

}

When compile, met an error:

error: expected unqualified-id before &.

It was so puzzling.

 

With experence in C++, fixed it after including head file <stdexcept>.

Then may I understand unqualified-id as incomplete class? If so, this error message just says "need a type or class before & even it is incomplete". The implication is that runtime_error is nod declared or not declared as a class.

 

What's the meaning of unqualified-id?

原文:https://www.cnblogs.com/clblacksmith/p/10395212.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!