3

我的旧 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 版本中的替换是什么?

4

1 回答 1

9

检查http://www.boost.org/doc/libs/1_48_0/libs/filesystem/v3/doc/deprecated.html

替换是absolute.

于 2012-02-20T12:48:05.580 回答