title: Std::getline on windows
body: <p>I have the following code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;sstream&gt;
  #include &lt;string&gt;
  #include &lt;vector&gt;
  
  using namespace std;
  
  int main() {
      // your code goes here
      stringstream instream("a x b c d x c d");
      string line;
      bool loop;
      loop = getline(instream, line);
      return 0;
  }
  </code></pre>
  
  <p>It works on gcc, but when I compile using Visual Studio 2013 I get the build error at loop = getline(instream, line):</p>
  
  <pre><code>cannot convert from 'std::basic_istream&lt;char, std::char_traits&lt;char&gt; &gt; to 'bool'
  </code></pre>
  
  <p>How do I fix this problem?</p>