Prefer swap() member function to std::swap. We were hitting the

inefficient generic std::swap for some derived types.
This commit is contained in:
ridiculousfish
2014-03-25 12:44:21 -07:00
parent a4cafaad2e
commit b520a03c57
4 changed files with 6 additions and 7 deletions

View File

@@ -1090,7 +1090,7 @@ bool parse_execution_context_t::determine_io_chain(const parse_node_t &statement
if (out_chain && ! errored)
{
std::swap(*out_chain, result);
out_chain->swap(result);
}
return ! errored;
}