Boost logo

Boost Users :

From: n.torrey.pines (n.torrey.pines_at_[hidden])
Date: 2007-02-28 22:51:57


Hi

As you know, on Windows, it is conventional to use backslashes in paths.
I am not out to teach Windows users a different convention, let alone
"generic syntax". So I'd like to construct paths from strings like
..\foo\bar.

The constructors like path(const std::string&) treat this as an invalid
syntax however (changing '\' to '/' works fine).

Is there a different procedure I should invoke that respects the native
platform syntax? I've looked in the docs, but I didn't find it. There
are only procedures for native printing.

I could of course manually replace '\' with '/' in the string, but such
solution probably wouldn't be very robust.

Thanks


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