me- 发表于 2013-2-7 03:29:50

c++ list front 的错误

某些些情况下,用
if (!m_RecordLenList.empty()) {printf(" cmRecordInfo.wSize = *m_RecordLenList.begin(); \n ");    cmRecordInfo.wSize = *m_RecordLenList.begin();} 代替
list.front() 可解决。
 
另,不使用
if (m_RecordInfoList.size()== 0) 而应该
if (m_RecordInfoList.empty()) ok。继续修改windows到vxworks下的代码了。 
页: [1]
查看完整版本: c++ list front 的错误