Error when using the strstr function, help required
Hi: When using the strstr function I get the following error: error C2440: 'initializing' : cannot convert from 'const char *' to 'char *' What have I do? Can I fix this with a const_cast, if not what is the fix, I'm sure it must be simple! Chers Sean. __________ Information from ESET NOD32 Antivirus, version of virus signature database 3331 (20080806) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
You could start here. http://www.catb.org/~esr/faqs/smart-questions.html That will assist you to either discover the answer to your own question or to ask the question in a way, or in a place, more likely to get you a useful answer. Cheers, - Richard richard@dynamisys.co.uk www.dynamisys.co.uk Land line +44 1793 731225 Mobile +44 7732 971786 -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Sean Farrow Sent: 06 August 2008 12:29 To: boost-users@lists.boost.org Subject: [Boost-users] Error when using the strstr function, help required Hi: When using the strstr function I get the following error: error C2440: 'initializing' : cannot convert from 'const char *' to 'char *' What have I do? Can I fix this with a const_cast, if not what is the fix, I'm sure it must be simple! Chers Sean. __________ Information from ESET NOD32 Antivirus, version of virus signature database 3331 (20080806) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.12/1594 - Release Date: 8/5/2008 9:49 PM
participants (2)
-
Richard
-
Sean Farrow