|
Boost : |
From: Johan Råde (rade_at_[hidden])
Date: 2008-08-27 11:14:46
The following code does not compile with Boost 1.36 and MSVS 2008:
#define BOOST_FILESYSTEM_NO_DEPRECATED
#include <boost/filesystem.hpp>
In get the following error message:
1>C:\Program Files\Boost\boost_1_36_0\boost/filesystem/convenience.hpp(98) : error C2275:
'boost::filesystem::path' : illegal use of this type as an expression
1> C:\Program Files\Boost\boost_1_36_0\boost/filesystem/path.hpp(49) : see declaration of
'boost::filesystem::path'
1>C:\Program Files\Boost\boost_1_36_0\boost/filesystem/convenience.hpp(100) : error C2275:
'boost::filesystem::wpath' : illegal use of this type as an expression
1> C:\Program Files\Boost\boost_1_36_0\boost/filesystem/path.hpp(65) : see declaration of
'boost::filesystem::wpath'
1>C:\Program Files\Boost\boost_1_36_0\boost/filesystem/convenience.hpp(103) : error C2275:
'boost::filesystem::path' : illegal use of this type as an expression
1> C:\Program Files\Boost\boost_1_36_0\boost/filesystem/path.hpp(49) : see declaration of
'boost::filesystem::path'
1>C:\Program Files\Boost\boost_1_36_0\boost/filesystem/convenience.hpp(105) : error C2275:
'boost::filesystem::wpath' : illegal use of this type as an expression
1> C:\Program Files\Boost\boost_1_36_0\boost/filesystem/path.hpp(65) : see declaration of
'boost::filesystem::wpath'
1>C:\Program Files\Boost\boost_1_36_0\boost/filesystem/convenience.hpp(108) : error C2275:
'boost::filesystem::path' : illegal use of this type as an expression
1> C:\Program Files\Boost\boost_1_36_0\boost/filesystem/path.hpp(49) : see declaration of
'boost::filesystem::path'
1>C:\Program Files\Boost\boost_1_36_0\boost/filesystem/convenience.hpp(110) : error C2275:
'boost::filesystem::wpath' : illegal use of this type as an expression
1> C:\Program Files\Boost\boost_1_36_0\boost/filesystem/path.hpp(65) : see declaration of
'boost::filesystem::wpath'
--Johan Råde
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk