aboutsummaryrefslogtreecommitdiff
path: root/butl/path.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-28 11:05:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-28 11:05:00 +0200
commit7508f6f84f44a28151def5da5f6ea434d670df60 (patch)
tree16ee7e6c49d71bfd242b4b930dd5841ebb1686df /butl/path.ixx
parent6abd3d57f666ce1cd4c4c792e649fd313bee22ad (diff)
Add path::traits::absolute()
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 169f05d..8004821 100644
--- a/butl/path.ixx
+++ b/butl/path.ixx
@@ -83,13 +83,7 @@ namespace butl
inline bool basic_path<C, K>::
absolute () const
{
- const string_type& s (this->path_);
-
-#ifdef _WIN32
- return s.size () > 1 && s[1] == ':';
-#else
- return s.size () != 0 && traits::is_separator (s[0]);
-#endif
+ return traits::absolute (this->path_);
}
template <typename C, typename K>