From b32579bad74e1b7f3a719fa49aad8566d20a6d2b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 26 Apr 2018 09:39:50 +0200 Subject: Relax path combination requirement for LHS to contain trailing slash Now if there is no slash, we automatically add the canonical one. This allows (natural) code like this: path f (d / "foo" / "bar"); --- libbutl/path.mxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbutl/path.mxx') diff --git a/libbutl/path.mxx b/libbutl/path.mxx index dfc634b..ab85a0f 100644 --- a/libbutl/path.mxx +++ b/libbutl/path.mxx @@ -1104,7 +1104,7 @@ LIBBUTL_MODEXPORT namespace butl using base_type::_size; using base_type::_init; - // Common implementation for operator/= and operator+=. + // Common implementation for operator/=. // void combine (const C*, size_type, difference_type); @@ -1197,7 +1197,7 @@ LIBBUTL_MODEXPORT namespace butl // Note that the result of (foo / "bar") is always a path, even if foo - // is dir_path. An idiom to force it dir_path is this: + // is dir_path. An idiom to force it to dir_path is: // // dir_path foo_bar (dir_path (foo) /= "bar"); // -- cgit v1.1