From: Peter C. <pet...@ne...> - 2001-12-13 12:37:53
|
> From: J.P. King [mailto:jp...@he...] > > Can you not fix the calls (that do not change their string) using > > const_cast? > > Probably - however that appears to be a C++ extension, and I don't > know any C++. However I am reading what documentation I can > find to work out if we can use it, and how to use it if we can. void f (char *s); const char *cs; f(s); // Should fail f(const_cast<char *>(cs)); // Should succeed, I think - Peter |