title: c++ sending reference fstream to class member function issue
body: <p>I'm trying to send an ifstream to a class member function called read which takes arguments int i (for size of the for loop to take in information and put it into an object of Song type) and I'm trying to get it to take an ifstream called din so that I can read these objects with my for loop above. I'm getting this error which I'm having difficulty parsing:
  <a href="http://i.stack.imgur.com/ZPUq5.png" rel="nofollow">My error inside the terminal environment</a>
  This is how I'm trying to implement it in the main:</p>
  
  <pre><code>Lib1.read(times, &amp;din);
  </code></pre>
  
  <p>In the header file:</p>
  
  <pre><code>void read(int i, ifstream &amp; din);
  </code></pre>
  
  <p>and in the implementation file:</p>
  
  <pre><code>void Library::read(int times, ifstream &amp; din)
  </code></pre>
  
  <p>Is there anything blatantly wrong with how I'm handling this?
  Thanks in advance!</p>