Can't compile cvs at the moment, failing in texrow.C
Angus
cxx -std strict_ansi -nocleanup -DHAVE_CONFIG_H -I. -I. -I. -I.. -I..
-I../src/cheaders -I/usr/local/include -ptr ../lyx_cxx_repository -O2 -MD -c
texrow.C cxx: Error: texrow.C, line 67: no operator "!=" matches these operands
operand types are: std::list<TexRow::RowItem,
std::allocator<TexRow::RowItem>>::iterator !=
std::list<TexRow::RowItem,
std::allocator<TexRow::RowItem>>::const_iterator
for(; kit != end; ++kit) {
--------------------------^
cxx: Info: 1 error detected in the compilation of "texrow.C".
Relevant code:
RowList::const_iterator cit = rowlist.begin();
RowList::const_iterator end = rowlist.end();
for (; cit != end; ++cit) {
if ((*cit).rownumber() == row) break;
}
if (cit != end) {
RowList::iterator kit = rowlist.begin();
// Increase the pos of all rows with the
// same id (and where the pos is larger)
// to avoid putting errorinsets at the
// same pos.
for(; kit != end; ++kit) {
if (&(*kit) != &(*cit)
&& (*kit).id() == (*cit).id()
Changing to
RowList::const_iterator kit = rowlist.begin();
Results in:
cxx -std strict_ansi -nocleanup -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I../src/c
headers -I/usr/local/include -ptr ../lyx_cxx_repository -O2 -MD -c texrow.C
cxx: Error: texrow.C, line 71: no instance of overloaded function
"TexRow::RowItem::pos" matches the argument list
argument types are: (int)
(*kit).pos((*kit).pos() + 1);
---------------------------------------^