Boost logo

Boost Users :

From: Richard (legalize+jeeves_at_[hidden])
Date: 2008-05-21 21:47:57


[Please do not mail me a copy of your followup]

boost-users_at_[hidden] spake the secret code
<c30def490805151340y734a2e14u76326b4315f6688b_at_[hidden]> thusly:

>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#basic_path-observers>,
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/>

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