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