Re: [Plib-devel] Re: [Plib-cvs] plib/src/ssg ssgLoadAC.cxx,1.36,1.37
Brought to you by:
sjbaker
From: Frederic B. <fre...@fr...> - 2005-12-07 14:46:47
|
Quoting Bram Stolk <br...@sa...>: > steve wrote: > > > So I'm left wondering why someone thought this fixed a bug - > > and I'm guessing that whatever they did wasn't necessarily > > correct and that we should look more carefully and inquire > > as to what was intended to be fixed. > > Ok, I'll be more careful next time, but a crash of flightgear > was reported on this list, in this posting: The crash is real. It is Visual C++ 2005 that throws exceptions on invali= d options. There are other strangeness that might appears logical at the seconf thou= ght. For example, strchr returns a 'const char *' in VC2005 although standard = C says that strchr should returns a char *. So loaders that do ( from memory ) : const char *filename; char *pt =3D strchr( filename, "/" ); *pt =3D '\0'; must be rewritten to add a const_cast statement. -Fred |