Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が理解しているように、Boost.Filesystem はネイティブ ロケール エンコーディングを使用し、Unicode で機能するため、std::string の代わりに ICU の UnicodeString を使用します。ただし、UnicodeString をネイティブ ロケール エンディングの std::string のようなものに変換したいと考えています。どうすればいいですか? C 文字列の使用は避けたいと思います。
これはあなたが探している答えを与えると思います:
ネイティブ形式への変換
tl;dr の場合:
boost::filesystem::path p; // ... std::string native = p.string();