title: C++ compiler does not recognize std::stringstream::swap
body: <p>I am trying to compile the following code with g++ (GCC) 4.8.2 20131212 (Red Hat 4.8.2-7):</p>
  
  <pre><code>#include &lt;sstream&gt;
  using namespace std;
  
  int main(int argc, char ** argv)
  {
      auto x = 1;
      stringstream s1, s2;
      s1.swap(s2);
  }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>g++ -g -std=c++0x -c main.cpp
  main.cpp: In function ‘int main(int, char**)’:
  main.cpp:8:5: error: ‘std::stringstream’ has no member named ‘swap’
    s1.swap(s2);
       ^
  make: *** [main.o] Error 1
  </code></pre>
  
  <p>According to <a href="http://www.cplusplus.com/reference/sstream/stringstream/swap/" rel="nofollow">this reference</a> it should work. Using different -std flags (gnu++11, c++0x etc.) didn't help. What am I missing?</p>