mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-26 18:51:02 +08:00
a58aa21934
In some scenarios we could end up with UB. I added simple example in test case where we add class instance to vector and as we know it may move its elements when resizing. Maybe we could allow to move and just unlisten previous listener but this would be very annoying as user needs to remember what would happen in every case. It is better to let user decide and force him to think about it.