On Thu, Jan 15, 2004 at 06:29:59PM +0300, Alexander V. Lukyanov wrote:
> I have found that AM_ICONV macro from gettext does the job and defines
> ICONV_CONST to const if the const is needed.
> 
> So the cast become (ICONV_CONST char**)&put_buf

The safest way to do this is to use const_cast<const char *>(&put_buf);
it'll catch unwanted type changes, and doesn't need an autoconf test:
it's harmless to do if not needed, since it'll still catch type errors.

-- 
Glenn Maynard

Reply via email to