|
Boost : |
Subject: Re: [boost] [1.44] [filesystem] operator +
From: Jochen Wilhelmy (j.wilhelmy_at_[hidden])
Date: 2010-08-25 05:26:01
> > Sometimes I have file formats that have two parts, e.g. a description
xml
> > file
> > and a data file. then I'd like to do name + ".xml" and name + ".dat"
if name
> > is
> > a fs::path
>path p1 = "foo/bar.xml";
>path p2 = path(p1).replace_extension(".dat");
path p = "foo/bar";
path p1 = p + ".xml";-)
path p2 = path(p1).replace_extension(".dat");
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk