
15 Oct
2009
15 Oct
'09
4:26 p.m.
bsing escribió:
I'm trying to come to grips with using the boost intrusive containers, but I don't think I understand how the lifetime of hooks need to be managed.
The node is being destroyed (note vec is destroyed before tree) while inserted in "tree". That's a lifetime error, you are end up storing garbage in the tree after vec is destroyed. Just change the order of the first lines. Best, Ion