Looks like vector::insert() doesn't like a const_iterator with gcc, I'll
fix that.
Pavel Sanda wrote:
make[3]: Entering directory `/mnt/teral/lyx/devel/src'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I../src -I../boost -Wextra -Wall -O -MT InsetRef.lo -MD -MP -MF
.deps/InsetRef.Tpo -c -o InsetRef.lo `test -f 'insets/InsetRef.cpp' || echo
'./'`insets/InsetRef.cpp
g++ -DHAVE_CONFIG_H -I. -I../src -I../boost -Wextra -Wall -O -MT InsetRef.lo
-MD -MP -MF .deps/InsetRef.Tpo -c insets/InsetRef.cpp -o InsetRef.o
insets/InsetRef.cpp: In member function 'virtual void lyx::InsetRef::addToToc(const
lyx::Buffer&, const lyx::ParConstIterator&) const':
insets/InsetRef.cpp:168: error: no matching function for call to 'std::vector<lyx::TocItem,
std::allocator<lyx::TocItem> >::insert(__gnu_cxx::__normal_iterator<const lyx::TocItem*,
std::vector<lyx::TocItem, std::allocator<lyx::TocItem> > >&, lyx::TocItem)'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/vector.tcc:93: note: candidates are: typename
std::vector<_Tp, _Alloc>::iterator std::vector<_Tp,
_Alloc>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp,
_Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = lyx::TocItem,
_Alloc = std::allocator<lyx::TocItem>]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4/bits/stl_vector.h:657: note: void
std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp,
_Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&) [with _Tp =
lyx::TocItem, _Alloc = std::allocator<lyx::TocItem>]
make[3]: *** [InsetRef.lo] Error 1
p