Opened 8 years ago

Closed 7 years ago

#11062 closed Bugs (duplicate)

imposible to traverse the path of the reverse iterator

Reported by: gilles.guerre8chaley@… Owned by: Beman Dawes
Milestone: Boost 1.60.0 Component: filesystem
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

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;

}

Change History (1)

comment:1 by Beman Dawes, 7 years ago

Milestone: To Be DeterminedBoost 1.60.0
Resolution: duplicate
Status: newclosed

Duplicate of #11061

--Beman

Note: See TracTickets for help on using tickets.