Boost logo

Boost :

Subject: Re: [boost] [1.44] [filesystem] operator +
From: Binglong X (binglongx_at_[hidden])
Date: 2010-08-23 19:27:42


On Mon, Aug 23, 2010 at 12:03 PM, Jochen Wilhelmy <j.wilhelmy_at_[hidden]>wrote:

> Hi!
>
> for boost::filesystem::path I would suggest an operator + that works like
> the following
> fs::path("foo") + "bar" -> "foobar"
>
fs::path(foo_path.string()+"bar");

> fs::path("foo") + "/bar" -> "foo/bar"
>
Isn't foo_path / "bar" better?


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