On 2/2/07, Markus Grueneis
Richard Dingwall
wrote: On 2/2/07, Polder, Matthew J
wrote: (...) The following works:
std::string t = "h:\\temp"; boost::filesystem::path p(t, boost::filesystem::native);
but I can't get filesystem to work with the string "h:/temp";
std::string s = p.string(); // s = "h:/temp"
h:/temp doesn't work in windows explorer either. You're mixing windows drive letters with POSIX path separators!
Try h:\temp instead.
Well, at least on any NT based system I've worked yet h:/temp is synonym with h:\temp.
Hmm you're right, I take that back.
AFAIK on Windows / and \ are mostly equivalent as path separators (I'm not sure about the \\computername syntax, but for local paths / mapped network drives it just works).
Best regards, Markus
(...)
Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users