title: error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
body: <p><strong>Please don't confuse with the title as it was already asked by someone but for a different context</strong></p>
  
  <p>The below code in Visual C++ Compiler (VS2008) does not get compiled, instead it throws this exception:</p>
  
  <pre><code>std::ifstream input (fileName);   
  
  while (input) {
    string s;
    input &gt;&gt; s;
    std::cout &lt;&lt; s &lt;&lt; std::endl;
  };
  </code></pre>
  
  <p>But this code compiles fine in cygwin g++. Any thoughts?</p>