const char *

Fred Labrosse <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Organization Aberystwyth University
Message-ID <[email protected]>
All,

Whenever I call:

pp->SetIntProp("crabbing", 1);

my compiler complains:

warning: deprecated conversion from string constant to 'char*'

So I started editing clientproxy.h and clientproxy.cc in my svn working copy 
to add the const's with a view of submitting a patch.

Obviously, the compilation fails because the underlying c code (in playerc.h) 
does not have the const's.  I haven't done any pure c in a while so I'm not 
too sure what to do with that.  I think gcc will be happy with added "const"s 
but this might not be generic enough.  And I'm not too sure what the 
repercussions of that will be with the rest of the code.  I could const_cast, 
but this somehow defeats the point...

Any suggestions?

Cheers,

Fred

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.