On Thu, Jan 15, 2004 at 02:19:41PM +0300, Alexander V. Lukyanov wrote:
> The iconv case is the nastiest, since iconv should actually take const char**
> as source string.

I don't think so.  Try this:

#include <string.h>
void func( const char **p ) { }
main()
{
        char *str = strdup("abc");
        func( &str );
}

test.cc:6: error: invalid conversion from `char**' to `const char**'

(If you can't figure out the reason for the above, I'll explain it, but
it's far too late right now.  :)

-- 
Glenn Maynard

Reply via email to