diff --git a/Foundation/include/Poco/TypeList.h b/Foundation/include/Poco/TypeList.h index 83e5f5b54..352696f8e 100644 --- a/Foundation/include/Poco/TypeList.h +++ b/Foundation/include/Poco/TypeList.h @@ -32,7 +32,7 @@ namespace Poco { template struct TypeList; - + struct NullTypeList { enum @@ -86,8 +86,8 @@ struct TypeList { if (this != &tl) { - TypeList tmp(tl); - swap(tmp); + head = tl.head; + tail = tl.tail; } return *this; } @@ -110,12 +110,6 @@ struct TypeList return tail < tl.tail; return false; } - - void swap(TypeList& tl) - { - std::swap(head, tl.head); - std::swap(tail, tl.tail); - } HeadType head; TailType tail;