Boost logo

Boost Users :

Subject: Re: [Boost-users] Program Options of Filesystem Path's - confused!
From: Daniel James (dnljms_at_[hidden])
Date: 2010-08-14 06:15:56


On 14 August 2010 11:08, Vladimir Prus <vladimir_at_[hidden]> wrote:
> Daniel James wrote:
>
>>
>> Your test will work, since the filename is quoted as it's written to
>> the stream, and then unquoted as it's extracted. But you'll see the
>> error with:
>>
>>     lexical_cast<fs::wpath>("the path that fails")
>>
>> Does program options ever do that?
>
> Yes, of course. It takes string from command line, and does lexical_cast on it.
> So, it seems like the only approach is to specialize lexical_cast for wpath/path?

I don't know. I'll take this up in a new thread on the development list.

Daniel


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