diff options
Diffstat (limited to 'butl/path.ixx')
-rw-r--r-- | butl/path.ixx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/butl/path.ixx b/butl/path.ixx index 8004821..c87a376 100644 --- a/butl/path.ixx +++ b/butl/path.ixx @@ -217,6 +217,18 @@ namespace butl template <typename C, typename K> inline basic_path<C, K>& basic_path<C, K>:: + canonicalize () + { + traits::canonicalize (this->path_); + + if (this->tsep_ > 1) // Non-canonical trailing separator. + this->tsep_ = 1; + + return *this; + } + + template <typename C, typename K> + inline basic_path<C, K>& basic_path<C, K>:: complete () { if (relative ()) |