
17 Apr
2007
17 Apr
'07
11:04 p.m.
On 4/17/07, Graham Reitz
Why does the following path initialization throw this?
"boost::filesystem::path: invalid name "c:" in path: "c:/dev/Sandbox/file_system/ textfile1.txt"
// Is this not an appropriate method to initialize path objects? path text_file(current_path().string() + "/textfile1.txt"); You might consider path text_file = complete("./textfile1.txt"); (or http://boost.org/libs/filesystem/doc/operations.htm#system_complete if you really need current_path), which may avoid the need to futz with
It comes from the name checker, as Rush Manbert mentioned. the name checkers. ~ Scott McMurray