[1.44] [filesystem] operator +
Hi! 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" -Jochen
On 23 August 2010 09:03, Jochen Wilhelmy <j.wilhelmy@arcor.de> wrote:
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? ~ Scott
On Mon, Aug 23, 2010 at 12:03 PM, Jochen Wilhelmy <j.wilhelmy@arcor.de>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?
participants (3)
-
Binglong X -
Jochen Wilhelmy -
Scott McMurray