如下代码所示的.h文件中boost::filesystem::exists方法在qt运行时,debug版本可以正常运行,但是release版本运行到boost::filesystem::exists时就会卡死,之后就直接崩溃。这是什么原因,debug和release这个方法使用的差别吗
class ReadIniCon
{
public:
ReadIniCon(std::string fileName):m_strFileName(fileName)
{
}
~ReadIniCon () = default;
bool Init()
{
if (!boost::filesystem::exists(this->m_strFileName))
{
std::cout << "file not exists!" << std::endl;
return false;
}
boost::property_tree::ini_parser::read_ini(this->m_strFileName, this->m_root_node);
std::cout << "end read config" << std::endl;
return true;
}
}
boost库是哪个版本