title: error: conversion from 'void' to non-scalar type 'std::vector<std::basic_string<char, std::char_traits requested
body: <p>full error message:</p>
  
  <pre><code>error: conversion from 'void' to non-scalar type 'std::vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;' requested
  </code></pre>
  
  
  
  <pre><code>  1 #include &lt;iostream&gt;
    2 #include &lt;iomanip&gt;
    3 #include &lt;fstream&gt;
    4 #include &lt;vector&gt;
    5 using namespace std;
    6
    7 token parseLine(string s, char i);
   53 int main()
   54 {
   55    string line;
   56    char delim = '|';
   57    ifstream inputStream("test.txt");
   58
   59    while( getline(inputStream, line) )
   60    {
   61       vector&lt;string&gt; tokens = parseLine( line, delim);
   62       if(tokens[0][0] != '#')
   63       {
   64          cout &lt;&lt; tokens[0];
   65          cout &lt;&lt; tokens[1];
   66          cout &lt;&lt; tokens[2];
   67       }
   68    }
   69 }
  </code></pre>
  
  <p>Please excuse the 8-52 line skip, that's commented out "stuff that didn't work".</p>
  
  <p>I'm not sure how to declare <code>parseLine</code>, nothing I try works: <code>void</code>, <code>int</code>, <code>double</code>, <code>string</code>, etc;</p>
  
  <p>Any pointers on how to declare <code>parseLine</code> so that it does what I want?</p>