Boost logo

Boost Users :

From: Richard Dingwall (rdingwall_at_[hidden])
Date: 2007-02-01 17:02:26


On 2/2/07, Markus Grueneis <markus.grueneis_at_[hidden]> wrote:
> 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.

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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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