I'm trying to declare a constant string in my C++ class, but I get an "Invalid in-class assignment", and I don't understand why
<p>here's the code:</p>

<pre><code>#include &lt;string&gt;

class Config {
public:
    static const std::string asdf = "hello world!";
}
</code></pre>

<p>I can't diagnose why this won't work</p>
