|
Boost Users : |
Subject: Re: [Boost-users] AVL tree insert_equal generating assertion `node_algorithms::unique(to_insert)'
From: bsing (bananasing_at_[hidden])
Date: 2009-10-16 07:12:24
bsing escribió:
> My previous mail got truncated, the completed listing is below:
Because you are inserting a value which is inalready inserted in an intrusive container. See Documentation:
Yes I figured it out immediately after posting. I tried fixing it by adding a duplicate instance in the vector before adding it to the tree, but the trouble with that seems to be that push_back()s that cause resize()s make the object invalid. So I guess a list is a better structure to hold objects for the lifetime of the avltree?
http://www.boost.org/doc/libs/1_40_0/doc/html/intrusive/safe_hook.html
Best,
ion
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net