What is the named cast of old style cast: pv = (void*)ps;
<p>Code with old style cast:</p>

<pre><code>const string *ps;  
void *pv;

pv = (void*)ps;
</code></pre>

<p>I have try three various named casts:</p>

<pre><code>pv = static_cast&lt;void*&gt;(ps); //  error: invalid static_cast from type ‘const string* {aka const std::basic_string&lt;char&gt;*}’ to type ‘void*’

pv = const_cast&lt;void*&gt;(ps); // error: invalid const_cast from type ‘const string* {aka const std::basic_string&lt;char&gt;*}’ to type ‘void*’

pv = reinterpret_cast&lt;void*&gt;(ps); // error: reinterpret_cast from type ‘const string* {aka const std::basic_string&lt;char&gt;*}’ to type ‘void*’ casts away qualifiers
</code></pre>

<p>As you can see. Nothing works. </p>
