title: c++ invalid initialization of reference of type 'int*&' from expression of type 'order_record*'
body: <p>I have a dynamic array, and I have a function called double_size that is supposed to double the size of the array if it's full, and a function is_full to check if the array is full. I get the error when I'm calling the function double_size. My array is called INV</p>
  
  <p>I have a class called order_record</p>
  
  <p>array declartion:</p>
  
  <pre><code>order_record * INV = 0;
  </code></pre>
  
  <p>prototype:</p>
  
  <pre><code>void double_size(int * &amp; INV, int count, int &amp; size);
  </code></pre>
  
  <p>I get the error in the double_size call in:</p>
  
  <pre><code>if (is_full(count, size))
          {
              double_size(INV, count, size);
          } 
  </code></pre>
  
  <p>double_size function:</p>
  
  <pre><code>void double_size(int * &amp; INV, int count, int &amp; size)
  {
      -snip-
  }
  </code></pre>
  
  <p>and I have no clue why I get an error.</p>