Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-05-18 11:44:10


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-iterators

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->():
&#135;
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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net