
25 Aug
2010
25 Aug
'10
9:26 a.m.
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");