我的旧 Boost 代码:
std::string CombinePath(const char* left, const char* right)
{
boost::filesystem::path p = boost::filesystem::complete(
boost::filesystem::path(对, boost::filesystem::native),
boost::filesystem::path(left, boost::filesystem::native) );
返回 p.string();
}
在新的 Boost 版本中,这仅使用#define BOOST_FILESYSTEM_VERSION 2. complete新 Boost 版本中的替换是什么?