KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a certain boost::filesystem::path in hand and I'd like to append a string (or path) to it. boost::filesystem::path p("c:\\dir"); p.append(".foo"); // should result in p pointing to c:\dir.foo The only overload boost::filesystem::path has of append wants two InputIterator s. My solution so far is to do the following: boost::filesystem::path p2(std::string(p.string()).append(".foo")); Am I missing something?
Tags (comma-separated)
Save Edits
Cancel