Boost logo

Boost Users :

Subject: Re: [Boost-users] Can I get filesystem::basic_path<> template to use backslashes ?
From: Timothy Madden (terminatorul_at_[hidden])
Date: 2010-07-30 04:00:17


Norbert Wenzel wrote:
> On 29.07.2010 15:36, Timothy Madden wrote:
>> Is there a way for the basic_path observer functions (string(),
>> root_path(), relative_path(), filename()) to use backslashes instead of
>> forward slashes on Windows ?
>
> Have you tried external_string() instead of string()? I currently can't
> test it, but if i remember correctly, that should give you a string
> formatted according to your OS path rules.

It works and the backslashes are displayed now, thank you.

The documentation makes these functions look like they apply only an
encoding conversion. Could this detail with backslashes for Windows be
included in their description, too ?

Thank you,
Timothy Madden


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