Dekel Tsur <[EMAIL PROTECTED]> writes:
| Compiling the latest CVS version gives the following error
|
| TextCache.C: In function static void TextCache::show(class ostream &, const class
|LyXText *)':
| TextCache.C:79: no match for call to (show_text) (LyXText *)'
| TextCache.C:61: candidates are: show_text::operator ()(LyXText *&) <near match>
| make[2]: *** [TextCache.o] Error 1
|
| I believe that to fix it, line 79 should be changed from
| st(const_cast<LyXText*>(lt));
| to
| st(const_cast<LyXText*&>(lt));
What compiler is this?
I belive that your compiler is actually wrong about this, but... we
need a workaround then.
I'll just remove the whole const_cast and make the member func show
take a non-const LyXText *.
Lgb