Can I declare a string in a header file in a definition of a class?
<p>Is it possible to declare a string at all in a header (.h) file, in the definition of a Class?</p>

<p>When I want to set a default <code>int</code>, I do:</p>

<pre><code> class MyClass
 {
     static const unsigned int kDATA_IMAGE_WIDTH =  1024;
</code></pre>

<p>Is there a way to do the same for the <code>string</code> object?</p>

<pre><code> class MyClass
 {
      static const string kDEFAULT_FILE_EXTENSION = "png"; // fail
</code></pre>

<p>I know I can use <code>#define</code>...</p>

<pre><code> #define kDEFAULT_FILE_EXTENSION "png"
</code></pre>

<p>thanks</p>

<p>edit: added that it is in a class definition. updated examples.</p>
