boost::filesystem::directory_iterator d_iterator debug下异常
如下代码是用来获取src_dir的当前目录TopDirectoryOnly或者及其子目录AllDirectory下,满足后缀extension的文件。release下正常,debug下出现 Run-Time Check Failure #2 - Stack around the variable ‘xxx stat’ was corrupted.解决方法: 使用boost_filesystem-
原创
2017-09-11 23:58:52 ·
1058 阅读 ·
0 评论