且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

提高文件系统路径为追加字符数组

更新时间:2023-02-25 15:27:15

的标题(和文档)指出,追加要求 codeCVT 参数那时(告诉追加功能转换如何字符集要完成)。

The headers (and the documentation) indicate that append required a codecvt parameter back then (to tell the append function how characterset conversions are to be done).

这适用于1.54:

#include <boost/filesystem.hpp>

int main() {
    boost::filesystem::path petscConfigurationPath;

    petscConfigurationPath.append("FluidPetsc/Basic.conf", boost::filesystem::path::codecvt());
}