Boost logo

Boost Users :

Subject: [Boost-users] [filesystem] Extracting a relative path.
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-07-13 07:05:57


Hi All

I'm trying to understand how to determine the relative path of one absolute
path to
another.

So,

c:\a\b\c.d

relative to

c:\a

and I'd like the answer to be

b\c.d

I thought this would be easy to do, but I can't see how.

Any thoughts?

Thanks, Rob.



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