how to define const string in the c++ method
<p>Inside class, I would like to define some const strings.however the compiler reports error when I use</p>

<pre><code>class A {
static const std::string s = "test" 
};
</code></pre>

<p>inside the class. How to do that? Do I have to define the const outside the class defination?</p>
