新手求助!!vs2008中的关于boost::filesystem的奇怪报错
我在vs中的部分代码为:
#include "boost/filesystem.hpp"
namespace bfs = boost::filesystem;
if (bfs::exists(savePath[path_it->first]))
{
bfs::remove(savePath[path_it->first]);
}
bfs::copy_file(tempPath[path_it->first],savePath[path_it->first]);
bfs::resize_file(savePath[path_it->first],len);
其中copy_file处报错说“Unhandled exception at 0x7502d36f in client.exe: Microsoft C++ exception: boost::filesystem3::filesystem_error at memory location 0x0027f05c..”
还有,我的
bfs::path tempDir = saveDir/"temp";
bfs::remove_all(tempDir); //报同样的错Unhandled exception at 0x7502d36f in client.exe: Microsoft C++ exception: boost::filesystem3::filesystem_error at memory location 0x0024eb04..
不知道什么原因,现在一头雾水,急求牛人指教!!谢谢了。。。