mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-29 20:59:45 +01:00 
			
		
		
		
	Tuple assignment very slow #2383
This commit is contained in:
		| @@ -86,8 +86,8 @@ struct TypeList | |||||||
| 	{ | 	{ | ||||||
| 		if (this != &tl) | 		if (this != &tl) | ||||||
| 		{ | 		{ | ||||||
| 			TypeList tmp(tl); | 			head = tl.head; | ||||||
| 			swap(tmp); | 			tail = tl.tail; | ||||||
| 		} | 		} | ||||||
| 		return *this; | 		return *this; | ||||||
| 	} | 	} | ||||||
| @@ -111,12 +111,6 @@ struct TypeList | |||||||
| 		return false; | 		return false; | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
| 	void swap(TypeList& tl) |  | ||||||
| 	{ |  | ||||||
| 		std::swap(head, tl.head); |  | ||||||
| 		std::swap(tail, tl.tail); |  | ||||||
| 	} |  | ||||||
| 	 |  | ||||||
| 	HeadType head; | 	HeadType head; | ||||||
| 	TailType tail; | 	TailType tail; | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alex Fabijanic
					Alex Fabijanic