Mailinglist Archive: opensuse-packaging (183 mails)

< Previous Next >
Re: [opensuse-packaging] error: invalid conversion from 'const char*' to 'char*'
  • From: Philipp Thomas <Philipp.Thomas2@xxxxxxx>
  • Date: Mon, 01 Jun 2009 15:06:05 +0200
  • Message-id: <4ak7259l4amaa71m8kgpsmfe8p86b6vgnn@xxxxxxx>
On Mon, 1 Jun 2009 12:24:06 +0200, you wrote:

char *pp = (char *) strchr(str, ';');

char *pp = const_cast<char *>(strchr(str,';'));

would have been better as it clearly says what you're up to.

Philipp
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
List Navigation