Attempting to write a String constructor to handle static char * such as "Hello World"
<p>I've got a String class. Recently, I found the poor thing couldn't handle:  </p>

<pre><code>String string = "Hello World";  
</code></pre>

<p>I immediately decided to rectify this by adding a constructor. However, the exact parameter eludes me:  </p>

<pre><code>inline String(const char[] str) : Array(str, sizeof(str) / sizeof(char)) { }  
</code></pre>

<p>generates the following error: "error C2146: syntax error : missing ')' before identifier 'str'"  </p>

<p>What I'm thinking is that since it's a static char * literal, it isn't meant to be passed to a function. But, I don't actually know.</p>

<p>Thanks. (To reassure - Any array passed to Array will promptly be copied, not stored)</p>
