Boost C++ Libraries: Ticket #3450: [fix in git] Bug into boost::python::stl_input_iterator https://svn.boost.org/trac10/ticket/3450 <p> I noticed that if you try to traverse more than once the range (begin,end) obtained with the <code>stl_input_iterator</code>, you don't get the expected results.<br /> <br /> Please, look at the attached code (rangemodule.cpp) and at the usage from the python console (python_console.txt).<br /> <br /> The problem is given by the call to the <code>std::distance</code> function.<br /> If you build with <code>-DWORK_AROUND</code> the problem disappears, but I need to call <code>std::distance</code>, because it is the original class that calls it (and I prefer not to modify it simply for building a python extension). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3450 Trac 1.4.3 anonymous Tue, 15 Sep 2009 07:54:07 GMT attachment set https://svn.boost.org/trac10/ticket/3450 https://svn.boost.org/trac10/ticket/3450 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">rangemodule.cpp</span> </li> </ul> Ticket micdestefano@… Tue, 15 Sep 2009 07:54:38 GMT attachment set https://svn.boost.org/trac10/ticket/3450 https://svn.boost.org/trac10/ticket/3450 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">python_console.txt</span> </li> </ul> Ticket troy d. straszheim Sat, 19 Sep 2009 18:49:30 GMT owner, status changed https://svn.boost.org/trac10/ticket/3450#comment:1 https://svn.boost.org/trac10/ticket/3450#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Dave Abrahams</span> to <span class="trac-author">troy d. straszheim</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Fix on my python branch: </p> <p> <a class="ext-link" href="http://gitorious.org/~straszheim/boost/straszheim/commit/a8979df969fd44bfaa649599293ccb173f6c29c7"><span class="icon">​</span>http://gitorious.org/~straszheim/boost/straszheim/commit/a8979df969fd44bfaa649599293ccb173f6c29c7</a> </p> Ticket troy d. straszheim Sat, 19 Sep 2009 18:54:07 GMT summary changed https://svn.boost.org/trac10/ticket/3450#comment:2 https://svn.boost.org/trac10/ticket/3450#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Bug into boost::python::stl_input_iterator</span> → <span class="trac-field-new">[fix in git] Bug into boost::python::stl_input_iterator</span> </li> </ul> Ticket micdestefano@… Mon, 21 Sep 2009 07:59:44 GMT <link>https://svn.boost.org/trac10/ticket/3450#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3450#comment:3</guid> <description> <p> Thank you very much. Will this fix be included into Boost 1.41 release ? </p> </description> <category>Ticket</category> </item> </channel> </rss>