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 '\'

You might also like to disable the checker that is throwing these
exceptions. See
and the associated member functions
      static name_check default_name_check( name_check new_check );


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at