随笔分类 -  C/C++

摘要:问题 编译器给出了一条警告:`warning: initialization from incompatible pointer type [ Wincompatible pointer types] const char ccp = cp;`,即赋值等号两边的类型不相容。 原因 标准中有关合法形式 阅读全文
posted @ 2018-01-27 23:29 jiangling500 阅读(8725) 评论(0) 推荐(0)
摘要:问题 编译提示错误: request for member ‘join’ in ‘my_thread’, which is of non class type ‘std::thread(background_task ( )())’ my_thread.join(); 原因 当把函数对象传入到线程构 阅读全文
posted @ 2018-01-20 10:30 jiangling500 阅读(813) 评论(0) 推荐(0)