title: deprecated conversion from string constant to 'char*'
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1524356/c-deprecated-conversion-from-string-constant-to-char">C++ deprecated conversion from string constant to &#39;char*&#39;</a>  </p>
  </blockquote>
  
  
  
  <p>I want to pass a string via char* to a function.</p>
  
  <pre><code> char *Type = new char[10];
   Type = "Access";  // ERROR
  </code></pre>
  
  <p>However I get this error:</p>
  
  <pre><code> error: deprecated conversion from string constant to 'char*'
  </code></pre>
  
  <p>How can I fix that?</p>