aboutsummaryrefslogtreecommitdiff
path: root/butl/path.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-02-10 16:10:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-02-13 12:55:34 +0300
commit31e91691e815074ebdb49d258967e2b2a0bfc965 (patch)
tree1739e815c312b40fa9a8c64b7b144cf60d4c28bb /butl/path.ixx
parent66ca47f856cc04774cbe07dc67e2e099e5d527f3 (diff)
Add path_entry(), fixes for path
Diffstat (limited to 'butl/path.ixx')
-rw-r--r--butl/path.ixx8
1 files changed, 1 insertions, 7 deletions
diff --git a/butl/path.ixx b/butl/path.ixx
index 4a5d992..b60f206 100644
--- a/butl/path.ixx
+++ b/butl/path.ixx
@@ -104,13 +104,7 @@ namespace butl
inline bool basic_path<C, K>::
root () const
{
- const string_type& s (this->path_);
-
-#ifdef _WIN32
- return s.size () == 2 && s[1] == ':';
-#else
- return s.size () == 1 && traits::is_separator (s[0]);
-#endif
+ return traits::root (this->path_);
}
template <typename C, typename K>