système de fichiers Boost de remplacement complet
-
28-10-2019 - |
Question
Mon ancien code Boost:
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(); }
Dans la nouvelle version Boost cela est compilé uniquement avec #define BOOST_FILESYSTEM_VERSION 2
. Quel est le remplacement de complete
dans la nouvelle version de Boost?
La solution
Le remplacement est absolute
.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow