superfluous constructor ?

Serge Pavlovsky pal666@gmail.com
Sun Feb 26 03:21:00 GMT 2012


hi
in <functional>
      function&
      operator=(function&& __x)
      {
function(std::move(__x)).swap(*this);
return *this;
      }
why not just __x.swap(*this); ?



More information about the Libstdc++ mailing list