Boost C++ Libraries: Ticket #11061: imposible to traverse the path of the reverse iterator https://svn.boost.org/trac10/ticket/11061 <p> This code throws an execption memory "std :: bad_alloc" in visual studio 2013 </p> <p> #include "stdafx.h" #include &lt;iostream&gt; #include &lt;boost/filesystem.hpp&gt; #include &lt;boost/range/adaptor/reversed.hpp&gt; </p> <p> int _tmain(int argc, _TCHAR* argv[]) { </p> <blockquote> <p> using boost::filesystem::path; path b = path("user/AppData/Roaming"); for (auto v : b){ </p> <blockquote> <p> std::cout &lt;&lt; v &lt;&lt; std::endl; </p> </blockquote> <p> } for (auto v : boost::adaptors::reverse(b)){ </p> <blockquote> <p> std::cout &lt;&lt; v &lt;&lt; std::endl; </p> </blockquote> <p> } </p> </blockquote> <blockquote> <p> return 0; </p> </blockquote> <p> } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11061 Trac 1.4.3 Beman Dawes Fri, 04 Sep 2015 17:40:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11061#comment:1 https://svn.boost.org/trac10/ticket/11061#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This ticket has been resolved by the addition of the class path reverse_iterator feature and rbegin() and rend() members. The reference documentation has also been updated with a note warning about the limitations of class path iterators. </p> <p> These changes should show up in the develop branch later today, and in master in a few days. </p> <p> Thanks for the report, </p> <p> --Beman </p> Ticket