|
Boost Users : |
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2007-05-21 19:39:03
Jaye Bass wrote:
> How do you get the path class to accept a windows drive letter?
>
> Suppose I have a dir named c:\Foo, the path constructor throws for every
> combo I can think of c:\\Foo, etc. I can however, say /Foo and
> everything works.
>
> Using boost1_33_1, VS 2005, XP Pro SP2 and linking with
> libboost_filesystem-vc80-mt-s-1_33_1.lib
Add the following line of code before you do any path processing:
boost::filesystem::path::default_name_check(boost::filesystem::native);
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