[LC++]static const char*

Vincent Penquerc'h Vincent.Penquerch at artworks.co.uk
Fri Dec 14 04:45:05 UTC 2001


> class foo
> {
>   static const char *a = "this";
>  // more things
> }; 

Have you tried:

class foo
{
  static const char *const a = "this";
 // more things
}; 

This makes the pointer const, as your first example made
only the string const.

-- 
Vincent Penquerc'h 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20011214/d60cdea4/attachment.htm 


More information about the tuxCPProgramming mailing list