码迷,mamicode.com
首页 > 其他好文 > 详细

What's the meaning of unqualified-id?

时间:2019-02-18 14:19:29      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:under   head   before   fixed   class   clu   ESS   sage   let   

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?

标签:under   head   before   fixed   class   clu   ESS   sage   let   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!