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

浙公网安备 33010602011771号