> Oliver Tappe wrote: > > > Yep, and that actually makes it even worse, since I bet there are > > several > > applications out there which use const_cast to invoke iconv() - if > > we would add > > const to our declaration, those applications could not be compiled > > on haiku. > > That is wrong. You can pass a non-const pointer when the function > expects > a const pointer without any problem. > Not if you use -Werror or -pedantic or some other stupid switch, but usually yes. I think I recall seeing some autocrap based scripts actually checking for it. François.