title: C++ static property initialization error on string
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;cstring&gt;
  #include &lt;QString&gt;
  using namespace std;
  
  class A {
  public:
      static const int i = 9;
      static const int PI = 1.3;
      static const char ch = 's';
      static const string str = "hello world"; // &lt;--- error
      static const QString str2 = "hello world"; // &lt;--- error
  };
  
  int main(int argc, char **argv) {
      cout &lt;&lt; "Hello world" &lt;&lt; endl;
  
      return 0 ;
  }
  </code></pre>
  
  <p>As the code gives everything, how can I init a string.</p>