
30 Nov
2004
30 Nov
'04
12:30 a.m.
Hi I'm trying to use the filesystem library, and I get an abort when trying to initialise a path object with a string containing a space. #include <boost/filesystem/path.hpp> #include <iostream> int main() { boost::filesystem::path p1("hello"); std::cout << p1.string(); boost::filesystem::path p2("hello world"); std::cout << p2.string(); } when run, this prints: helloAborted I couldn't find anything saying that the string path constructor can't contain a space. Am I doing something wrong, or is this a bug? Using gcc 3.3.4 on Debian. thanks, Richard