表达式结果未在Xcode上使用

时间:2020-08-22 21:26:01

标签: c++ xcode compiler-warnings

全部

以下给出警告:

std::list<MyList>::iterator it = std::next( m_lines.begin(), m_currentLine - 1 );
for( it; it != m_lines.end(); ++it )

红色的波浪状表示it;上的错误。

这是什么问题,我该如何解决?

如果重要的话,我正在OS X 10.13上使用Xcode 9。

TIA!

0 个答案:

没有答案