
[Please do not mail me a copy of your followup]
boost-users@lists.boost.org spake the secret code
i like to print the full path of the files and directory and when doing it with native_file_string() error C2039: 'native_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i just do simple : for( fs::recursive_directory_iterator it(dir_path); it != fs::recursive_directory_iterator(); ++it) {
string s = it->native_file_string(); }
What version of boost are you using? According to http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/reference.html#basi..., for 1.35 you should be using external_file_string(): "Returns: The stored path, formatted according to the operating system rules for regular file pathnames, with any Filename conversion applied, and encoded by the Traits::to_external conversion function." -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download http://www.xmission.com/~legalize/book/download/index.html Legalize Adulthood! http://blogs.xmission.com/legalize/