Boost logo

Boost :

Subject: Re: [boost] [1.44] [filesystem] operator +
From: Jochen Wilhelmy (j.wilhelmy_at_[hidden])
Date: 2010-08-24 04:58:23


> > for boost::filesystem::path I would suggest an operator + that works
like
> > the following
> > fs::path("foo") + "bar" -> "foobar"
> > fs::path("foo") + "/bar" -> "foo/bar"
> > fs::path("foo") / "bar" -> "foo/bar"
> >
>What's the situation in which you'd like to use that operator?

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

-Jochen


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk