zhougong

 

2018年4月21日

c++之__attribute__((unused))

摘要: 转自https://blog.csdn.net/u013083059/article/details/19342935 内核时注意到有些函数会有添加__attribute__((unused)), 在gcc手册中找到了有关的解释: unused:This attribute, attached to 阅读全文

posted @ 2018-04-21 11:37 zhougong 阅读(2450) 评论(0) 推荐(0) 编辑

typedef typename

摘要: 所以根据上述两条分析, 语句的真是面目是: typedef创建了存在类型的别名,而typename告诉编译器RefBase::weakref_type是一个类型而不是一个成员。 阅读全文

posted @ 2018-04-21 11:33 zhougong 阅读(229) 评论(0) 推荐(0) 编辑

导航