[boost::filesystem] Directory iteration and doc inconsistencies...

Hello! Using boost 1.34 with VC 8 Express Edition and the documentation pointing to: http://www.boost.org/libs/filesystem/doc/tr2_proposal.html#basic_path-iterat... I would like to ask following: the doc states: 1. For any other iterator value a const basic_directory_entry<Path>& is returned. [...] For any other iterator value a const basic_directory_entry<Path>* is returned. In my case a string_type is returned. 2. "Directory iteration shall not yield directory entries for the current (dot) and parent (dot dot) directories." In my case begin() points to the current (dot) directory. Are these features not implemented in the current 1.34 release? Debugger shows the following type returned by begin().operator->(): FUNCTION CALL: boost::iterator_facade<boost::filesystem::basic_path<std::basic_string<char,std::char_traits<char>,std::allocator<char>
,boost::filesystem::path_traits>::iterator,std::basic_string<char,std::char_traits<char>,std::allocator<char> const ,boost::bidirectional_traversal_tag,std::basic_string<char,std::char_traits<char>,std::allocator<char> const &,int>::operator-> returned
VALUE: "." TYPE: const std::basic_string<char,std::char_traits<char>,std::allocator<char> > * operator* returns the reference to std::basic_string<char,std::char_traits<char>,std::allocator<char> > With Kind Regards, Ovanes
participants (1)
-
Ovanes Markarian