Boost logo

Boost Users :

From: Os (os_at_[hidden])
Date: 2007-05-30 11:26:31


Having just moved to v1.34.0, I now get a build warning from this file.

boost/filesystem/convenience.hpp:46: warning C4245: 'argument' :
conversion from 'int' to 'boost::filesystem::system_error_type',
signed/unsigned mismatch

Is this a bug?

The line in question is

               boost::throw_exception( basic_filesystem_error<Path>(
                 "boost::filesystem::create_directories", ph, -1 ) );

Changing it to

               boost::throw_exception( basic_filesystem_error<Path>(
                 "boost::filesystem::create_directories", ph,
(boost::filesystem::system_error_type)-1 ) );

seems to fix it.

cheers,
os.

-- 
os_at_[hidden]
http://www.collective.co.uk/
http://www.myspace.com/darkroomtheband

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