Hi, all:

My code is as simple as:
path tempp(dir_path, native );

It used to work for boost 1.42. And now, it's working fine with boost 1.49.0 ...
However, current Ubuntu 11.10 affords boost 1.46.1.
Whenever I tried to compile my code with boost 1.46.1, I got the following errors:

invalid conversion from ‘bool (*)(const string&) {aka bool (*)(const std::basic_string<char>&)}’ to ‘boost::enable_if_c<true, void>::type* {aka void*}’ [-fpermissive]


In addition, I notice there are some other errors at the same time, which seems to have something to do with filesystem3 ?


Invalid arguments '
Candidates are:
bool is_directory(boost::filesystem3::file_status)
bool is_directory(const boost::filesystem3::path &)
bool is_directory(const boost::filesystem3::path &, boost::system::error_code &)
'



However, why my code is able to compile with boost 1.49.0 then?


Cheers
Pei




--

Pei JIA

Email: jp4work@gmail.com
cell:    +1 604-362-5816

Welcome to Vision Open
http://www.visionopen.com