title: “ error: incompatible types in assignment of” when trying to resize array of pointers to objects
body: <p>I'm trying to resize this array of pointers to objects. Essentially, I'm attempting to create a new array of pointers to objects, twice the size of the original one, fill the new one with the original one, and then have the original one pointed to the new one.</p>
  
  <p>Seems like everything is working out until I try to assign the new one to the old one.</p>
  
  <p>If I just do the copy, to the new temporary array, it runs. If I try to assign the temporary one to the old one, it gives me an error.</p>
  
  <p>This is what I'm working with:</p>
  
  <p>Working on taking this, which is a data member of a class file:</p>
  
  <pre><code>tiger *tigerDen[10];      //Tiger array
  </code></pre>
  
  <p>and expanding it like this:</p>
  
  <pre><code>if (tigerIndexTracker + 1 &gt; tigerDenSize)
  {
      tigerDenSize = tigerDenSize * 2;
      tiger* temp[tigerDenSize];
  
      for (int count = 0; count &lt; tigerIndexTracker; count++)
      {
          temp[count] = tigerDen[count];
  
      } 
  
      tigerDen = temp;
  
  }
  </code></pre>
  
  <p>Really not sure what needs to be done to make this one work. Would love some help.</p>
  
  <p>Exact error I get (not sure if it's intelligible):</p>
  
  <blockquote>
    <p>error: incompatible types in assignment of ‘tiger* [(((sizetype)(((ssizetype >((zoo*)this)->zoo::tigerDenSize) + -1)) + 1)]’ to ‘tiger* [10]’
      tigerDen = temp;</p>
  </blockquote>
  
  <p>There's an arrow pointing to the assignment operator.</p>
  
  <p>Edit: tigerDenSize is just an int that's set to 20. tigerIndexTracker is an int set to 10. Essentially, what I'm doing is trying to sense if an object is about to be added to the array that will take it over it's limit, and if so, create a new array that I can move everything to.</p>