>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: |
Lars> >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | |
Lars> Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
Lars> writes: | | Lars> cxx: Error:
Lars> ../../../lyx-devel/src/mathed/math_grid.C, line 274: | Lars> a
Lars> reference | of type "lyxstring &" (not const-qualified) cannot |
Lars> Lars> be initialized | with a value of type
Lars> "MathInset::cells_type" | | Lars> swap(cells_, new_cells); |
Lars> -------------^ | | Lars> I wonder where the string it talks
Lars> about is | | Lars> cells_ and new_cells have the same type. | |
Lars> Lars> Might be a namespace issue. I have a small possible fix: |
Lars> | I already have removed the global namespace in my tree (will
Lars> commit | soon). Indeed using syd::swap fixes the problem... | |
Lars> I have two remaining errors: | | mycxx -DHAVE_CONFIG_H -I.
Lars> -I../../../lyx-devel/src/mathed -I../../src
Lars> -I../../../lyx-devel/src/mathed/../ -I../.. -I../../../lyx-devel
Lars> -I../../../lyx-devel/boost -I../../../lyx-devel/src/cheaders
Lars> -I/afs/rocq/home/meval/common/include/ -I/usr/local/include/ -g0
Lars> -Wp,-MD,.deps/math_grid.pp -c
Lars> ../../../lyx-devel/src/mathed/math_grid.C | cxx: Error:
Lars> ../../../lyx-devel/src/mathed/math_grid.C, line 242: too few |
Lars> arguments in function call | cells_.push_back(); |
Lars> ---------------------------------^
Lars> This can probably be fixed with
Lars> cells_.push_back(cells_type::value_type());
Yes, it works.
Lars> | cxx: Error: ../../../lyx-devel/src/mathed/math_grid.C, line
Lars> 273: no instance | of overloaded function "std::vector<T,
Lars> Allocator>::insert [with | T=MathGridInset::ColInfo, |
Lars> Allocator=std::allocator<MathGridInset::ColInfo>]" matches the |
Lars> argument list | argument types are:
Lars> (std::vector<MathGridInset::ColInfo, |
Lars> std::allocator<MathGridInset::ColInfo>>::iterator) |
Lars> colinfo_.insert(colinfo_.begin() + newcol); | -----------------^
Lars> I am not sure what this is supposed to do. What is it supposed
Lars> to insert?
Lars> Probably:
Lars> colinfo_.insert(colinfo_.begin() + newcol, ColInfo());
Lars> | These are non standard methods, IMO.
Lars> yes... I think so. Or perhaps not... are there a vector::insert
Lars> the take an iterator and a value_type with defautl set to
Lars> value_type() ?
No, I cannot see that for either insert or push_back.
Another one for you: in paragraph.h, getLayout is declared inline, but
only defined in paragraph.C. Compaq cxx complains loudly. Should I
remove the inline or move the definition? (i.e. is there a good reason
for it being inline?)
JMarc