[haiku-development] Re: Aw: Re: Source-level incompatibility in iconv.h

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 28 Oct 2008 13:35:38 +0100 CET

> 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.

Other related posts: