$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Question on intrusive hooks
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-10-15 12:26:55
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