Re: [Boost-users] [filesystem] unable to parse file path
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Küppers, Ben Sent: Thursday, November 02, 2006 4:37 AM To: boost-users@lists.boost.org Subject: [Boost-users] [filesystem] unable to parse file path
At the moment, I don't see any other option than to process the path string manually before passing it to the path constructor (kind-a defeats the whole purpose of using this class).
[Nat] I'd suggest a string pass -- on every platform -- to change every '\' to '/' before passing it to boost::filesystem::path. I believe forward slash should work everywhere. I find it plausible that backslash would only work on Windows.
[Nat] I'd suggest a string pass -- on every platform -- to change every '\' to '/' before passing it to boost::filesystem::path. I believe forward slash should work everywhere. I find it plausible that backslash would only work on Windows.
That is what I am doing right now but I started using boost::filesystem::path to get out of that business. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
participants (2)
-
Küppers, Ben
-
Nat Goodspeed