Boost logo

Boost Users :

From: Markus Grueneis (markus.grueneis_at_[hidden])
Date: 2007-02-01 15:17:38


Richard Dingwall <rdingwall_at_[hidden]> wrote:

> On 2/2/07, Polder, Matthew J <matthew.j.polder_at_[hidden]> 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.

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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net