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


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

                  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, kalb at, bjorn.karlsson at, gregod at, wekempf at