Boost filesystem complete replacement
-
28-10-2019 - |
Frage
My old Boost code:
std::string CombinePath(const char* left, const char* right) { boost::filesystem::path p = boost::filesystem::complete( boost::filesystem::path(right, boost::filesystem::native), boost::filesystem::path(left, boost::filesystem::native) ); return p.string(); }
In new Boost version this is compiled only with #define BOOST_FILESYSTEM_VERSION 2
. What is complete
replacement in the new Boost version?
Lösung
Check http://www.boost.org/doc/libs/1_48_0/libs/filesystem/v3/doc/deprecated.html.
The replacement is absolute
.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow