Re: [boost] [filesystem]please help

Hello me22, Thanks me22, but fs::path p("d:/temp",fs::path::native); // iirc seems to be fs::path p("d:/temp",fs::native); // iirc B/Rgds Max
On 4/2/06, Wang Weiwei <wwwang@ccsdl.org> wrote:
namespace fs = boost::filesystem; fs::path p("d:/temp");
and I got an exception saying that "d:" in the input path is invalid.
The constructor you're calling in this case expects the portable path format, not the native one. You need to tell it that it's a native-format path: fs::path p("d:/temp",fs::path::native); // iirc
I think this might be changing in the new and improved version in the soon-to-be-released 1.34 however, so you might want to start using/wait for the new version.
~ Scott _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (1)
-
Wang Weiwei