C++ Issue with const char * on strchr

Jochen Schmitt Jochen at herr-schmitt.de
Tue Mar 10 20:26:55 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hallo,

I have a odd issue with the current g++ 4.4 release on rawhide.

If I try to pass a string declared as const char * in a c++ programm
to the
strchr function, I will get an error message which tell me, that a
conversation
from const char * to char * is not valid.

Because this doesn't happens on older releases of g++, I want to as:
Is this
a bug or a feature?

Best Regards:

Jochen Schmitt

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkm2zQMACgkQT2AHK6txfgxCUACeIvIrljYFN6Zc7L/w/eIXxZqB
dskAoLqlzh0/+bj7lv5gtmoWyAwlw39P
=NObm
-----END PGP SIGNATURE-----




More information about the fedora-devel-list mailing list