Boost logo

Boost Users :

Subject: [Boost-users] Odd boost::filesystem path behaviour?
From: Tim Rawlinson (tim.rawlinson_at_[hidden])
Date: 2010-07-21 08:33:57


Hi,

The following seems wrong to me, specifically the behaviour on Windows:

path("/c:/file")
                  Linux Windows
by iteration "/", "c:", "file" "/", "c:", "/", "file"
root_path "/" "/"
relative_path "c:/file" "file"

Is this behaviour correct?

For reference, the boost::filesystem documents says:
"All basic_path string or sequence arguments that describe a path shall
accept the portable pathname format, ...",
which the above path seems to be but it is interpreting it in a platform
specific and, to my eyes, incorrect way.

- Tim


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