Boost logo

Boost Users :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2005-07-14 09:45:35


At 01:27 2005-07-14, you wrote:
> > 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.

'/' works just fine in Windows, always has except from a command shell
if it's an error in boost, then there is an error in boost

>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 mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users

Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"


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