[Boost-bugs] [Boost C++ Libraries] #11062: imposible to traverse the path of the reverse iterator

Subject: [Boost-bugs] [Boost C++ Libraries] #11062: imposible to traverse the path of the reverse iterator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-27 21:51:25


#11062: imposible to traverse the path of the reverse iterator
------------------------------------+------------------------
 Reporter: gilles.guerre8chaley@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
------------------------------------+------------------------
 This code throws an execption memory "std :: bad_alloc" in visual studio
 2013


 #include "stdafx.h"
 #include <iostream>
 #include <boost/filesystem.hpp>
 #include <boost/range/adaptor/reversed.hpp>

 int _tmain(int argc, _TCHAR* argv[])
 {
         using boost::filesystem::path;
         path b = path("user/AppData/Roaming");
         for (auto v : b){
                 std::cout << v << std::endl;
         }
         for (auto v : boost::adaptors::reverse(b)){
                 std::cout << v << std::endl;
         }

         return 0;
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11062>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC