invalid initializer
<p>This code keep saying :  error: invalid initializer</p>

<pre><code>char * ss = "hello world";
char s[10] = ss;
std::transform(s, s + std::strlen(s), s, static_cast&lt;int(*)(int)&gt;(std::toupper));
</code></pre>

<p>How can it be fixed?</p>
