Boost logo

Boost Users :

From: Angus Leeming (angus.leeming_at_[hidden])
Date: 2005-07-14 03:27:09


> On 7/13/05, Peter Koch Larsen <pkl_at_[hidden]> wrote:
>> I have a very basic question. Why does path("s:/dbgdata/testdata.2")
>> throw the exception boost::filesystem::filesystem_error with the
>> errormessage "boost::filesystem::path: invalid name "s:" in path:
>> "s:/dbgdata/testdata.2"? It certainly looks as if I've overlooked
>> something quite fundamental.
>>
>> I'm using MSVC 8-0 Beta 2 and boost version 1.32.0.

Cory Nelson wrote:
> try passing boost::filesystem::native as the second arg to path()

Also note that '/' isn't a native directory separator on Windows. Use '\'
instead.

You might also like to disable the checker that is throwing these
exceptions. See
http://www.boost.org/libs/filesystem/doc/path.htm#name_check%AD_mechanism
and the associated member functions
      static name_check default_name_check( name_check new_check );

Angus


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