title: Const struct assigned to struct
body: <p>I have a simple function:</p>
  
  <pre><code>StudentType* SortStudentsByName(const StudentType* student, int numStudents)
  {
      StudentType* returnStudent = new (nothrow) StudentType[numStudents];
      returnStudent = student; // error
  }
  </code></pre>
  
  <p>it keeps saying <code>Type const StudentType* cannot be assigned to StudentType*</code>, which is ridiculous because its the same exact type, one is just a constant.</p>
  
  <p>If i remove the <code>const</code> from the function parameter list, it works.</p>
  
  <p>Im not allowed to remove the <code>const</code> though, because that array shouldn't be modified.</p>
  
  <p>A couple important things:</p>
  
  <p>(1) Both arrays are constructed at runtime to the same size, ensured by the other parameter.</p>
  
  <p>(2) bitcopy should handle this, and it handles the non-const version.</p>
  
  <p>Is there any way to make this work, or do i have to do something different?</p>