ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.05k stars 373 forks source link

Fixed: move assignment not working for non-empty containers #759

Closed somaveszelovszki closed 9 months ago

somaveszelovszki commented 9 months ago

The move assignment was not working properly for some container types if the target is not empty. Affected container types: priority_queue, set, multiset. Solution: clear() called in these move assignment functions before adding the new elements to the target container. Unit tests modified for all containers types (even the ones that implemented the move assignment correctly) to prevent future regressions.

semanticdiff-com[bot] commented 9 months ago

View changes with SemanticDiff