<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: [LC++]static const char*</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>> class foo</FONT>
<BR><FONT SIZE=2>> {</FONT>
<BR><FONT SIZE=2>> static const char *a = "this";</FONT>
<BR><FONT SIZE=2>> // more things</FONT>
<BR><FONT SIZE=2>> }; </FONT>
</P>
<P><FONT SIZE=2>Have you tried:</FONT>
</P>
<P><FONT SIZE=2>class foo</FONT>
<BR><FONT SIZE=2>{</FONT>
<BR><FONT SIZE=2> static const char *const a = "this";</FONT>
<BR><FONT SIZE=2> // more things</FONT>
<BR><FONT SIZE=2>}; </FONT>
</P>
<P><FONT SIZE=2>This makes the pointer const, as your first example made</FONT>
<BR><FONT SIZE=2>only the string const.</FONT>
</P>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Vincent Penquerc'h </FONT>
</P>
</BODY>
</HTML>