Tuple assignment very slow #2383

This commit is contained in:
Alex Fabijanic 2018-07-06 21:44:02 -05:00
parent 98fd0b4124
commit 00abd06f75

View File

@ -86,8 +86,8 @@ struct TypeList
{
if (this != &tl)
{
TypeList tmp(tl);
swap(tmp);
head = tl.head;
tail = tl.tail;
}
return *this;
}
@ -111,12 +111,6 @@ struct TypeList
return false;
}
void swap(TypeList& tl)
{
std::swap(head, tl.head);
std::swap(tail, tl.tail);
}
HeadType head;
TailType tail;
};