| ▲ | theamk an hour ago | |
RAII is not going to help you here, you need something else (move semantics or refcount-based GC are most common, but other choices exist too).If this one is too easy, make function return "w" as well, or make it add a widget to two different lists | ||