Boost logo

Boost Users :

From: Eswar K (kja.eswar_at_[hidden])
Date: 2008-01-17 14:04:22


Hi,

I am newbie to boost. I was earlier using boost-1.33.1 and my code was
working fine. In FC6 i am compiling my code and shows me the following
error.
*
error: âclass
boost::filesystem::basic_directory_entry<boost::filesystem::basic_path<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::filesystem::path_traits> >â has no member named ânative_file_stringâ*

Is there any difference in the libraries ? Am I missing something?

My function is something like this.

*void recurse_directory( const boost::filesystem::path& directory )
            {
                boost::filesystem::directory_iterator end;
                for( boost::filesystem::directory_iterator dir_itr(
directory ); dir_itr != end; ++dir_itr )
                {
                    if( boost::filesystem::is_directory( *dir_itr ) )
                    {
                        try {
                            recurse_directory( *dir_itr );
                        } catch (boost::filesystem::filesystem_error &e) {
                            std::cerr << "Error recursing directory: " <<
(*dir_itr).native_file_string() << " (" << e.what() << ")" << std::endl;
                            continue;
                        }
                    } else
                    {
                        add_file( (*dir_itr).native_file_string() ); // Get
error here....
                    }
                }
            }
*
I am getting the error on the highlighted line.

I am stuck here. Any help would be deeply appreciated.

Thanks in advance.

Regards,
Eswar



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