Il 29/01/2011 18:37, Kornel ha scritto:

Am Samstag, 29. Januar 2011 schrieb Enrico Forestieri:

> > > Yes, the cast isn't nice. Does attached patch also fix the problem?

> > > If yes, I think you could commit it.

>

> Please, don't. It breaks compilation if size_t is typedef'd to unsigned

> int.

>

> > Yes, it compiles now.

>

> Kornel, does it compile using the attached patch?

Yes, this compiles too. Sorry for the delay, was outside.

Kornel


Ok, apart from compiling, is it only me who's experience a crash when
typing any character in text mode (seems it was not at all due to my
template-based patch of docstream.h) ?

$ ./src/lyx
/usr/include/c++/4.4/bits/basic_string.h:745: typename _Alloc::rebind<_CharT>::other::reference std::basic_string<Char, Traits, Alloc>::operator[](typename _Alloc::rebind<_CharT>::other::size_type) [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>, _Alloc = std::allocator<wchar_t>]: Assertion '__pos < size()' failed.
Annullato

    T.

Reply via email to