Boost logo

Boost Users :

Subject: Re: [Boost-users] AVL tree insert_equal generating assertion `node_algorithms::unique(to_insert)'
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-10-16 08:12:33


> 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?

Or try deque if you just need to add and not erase. Anyway, why do you
need Boost.Intrusive if you are going to copy the value? Isn't better to
  use std::set and forget Boost.Intrusive?

Ion


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