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]