Hi Dominique ________________________________________ De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de Dominique Devienne [ddevienne@gmail.com] Enviado el: jueves, 12 de marzo de 2009 21:46 Para: boost-users@lists.boost.org Asunto: Re: [Boost-users] [Multi-Index] crash on iterator copy or assignment
On Thu, Mar 12, 2009 at 3:36 PM, Steven Watanabe
wrote: After filling in enough to make your code compile, it works for me. I've attached what I did. If this works for you, can you post a minimal and complete example that fails?
Hi Steven,
Your example works for me as well, since you've found the same fix my colleague found, which is to write
std::auto_ptr<ByTypeFooIterator> iter_ptr(new ByTypeFooIterator);
instead of
std::auto_ptr<ByTypeFooIterator> iter_ptr = new ByTypeFooIterator;
I was trying to reproduce your problem locally but as usual Steven outdid me :) FWIW, the last line should not compile, and the fact that it does in VS2005 is a compiler bug: http://tinyurl.com/abl9cj Joaquín M López Muñoz Telefónica, Investigación y Desarrollo