I get this error when compiling latest CVS with gcc 2.95 + stlport:

g++ -DHAVE_CONFIG_H -I. -I../../src -I. -I../../boost  
-I/usr/include/stlport    -I/usr/X11R6/include  -DCXX_GLOBAL_CSTD 
-ftemplate-depth-30 -nostdinc++ -g -W -Wall -c -o cursor.o `test -f 
'../../src/cursor.C' || echo '../../src/'`../../src/cursor.C
../../src/cursor.C:545: warning: #warning FIXME
../../src/cursor.C:616: warning: #warning FIXME
../../src/cursor.C:1084: warning: #warning FIXME
../../src/cursor.C:1266: warning: #warning look here
../../src/cursor.C:1282: warning: #warning look here
../../src/cursor.C:1552: warning: #warning FIXME
../../src/cursor.C: In method `bool LCursor::openable(const MathAtom &)':
../../src/cursor.C:838: comparison of distinct pointer types `const 
MathInset *' and `InsetBase *' lacks a cast
make[3]: *** [cursor.o] Fehler 1


It compiles if I change line 838 of src/Cursor.C from

if (t.operator->() != anchor_[depth()].inset())

to

if (t.operator->() != 
const_cast<InsetBase const *>(anchor_[depth()].inset()))


Is this expected?


Georg


Reply via email to