title: invalid conversion from ‘const BYTE* {aka const unsigned char*}’ to ‘BYTE_PTR {aka unsigned char*}’
body: <p>I don't know why g++ compiler gives me error when compiling this code:</p>
  
  <pre><code>typedef unsigned char BYTE;
  typedef BYTE* BYTE_PTR;
  
  const BYTE myByte[] = {0x00, 0xFF};
  const BYTE_PTR myByte_ptr = myByte;
  </code></pre>
  
  <p>compiler gives me this error:</p>
  
  <pre><code>error: invalid conversion from ‘const BYTE* {aka const unsigned char*}’ to ‘BYTE_PTR {aka unsigned char*}’ [-fpermissive]
  </code></pre>
  
  <p>But this code is OK</p>
  
  <pre><code>const BYTE myByte[] = {0x00, 0xFF};
  const unsigned char* myByte_ptr = myByte;
  </code></pre>