<div class="gmail_quote">On Fri, Jun 11, 2010 at 4:17 PM, yabcok <span dir="ltr">&lt;<a href="mailto:yabcok@gmail.com">yabcok@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I&#39;m afraid you are wrong. Subsequent handle values would be 0, 1,<br>
INVALID_ELEMENT_HANDLE.<br></blockquote><div><br></div><div>Yes, you are correct. The sequence is always 0, 1, INVALID_ELEMENT_HANDLE.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Please, compare this program behavior in release and  debug builds, to<br>
see the real problem (infinite lopp at the last BOOST_FOREACH).<br>
<br></blockquote><div><br></div><div>I have looked into this problem, and have tracked it down to an interaction between code optimization and the use of std::pair with BOOST_FOREACH. The problem can be worked around by replacing std::pair&lt;Iterator, Iterator&gt; with boost::iterator_range&lt;Iterator&gt; which to my mind is a neater solution anyhow. Hopefully this information will be of some use to you, and I shall continue to investigate the problem with std::pair.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Regards,<br>
Jacek<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br></div><div>Sorry for my earlier mistake.</div><div><br></div><div>Regards,</div><div>Neil Groves </div></div>

