From 31e91691e815074ebdb49d258967e2b2a0bfc965 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 10 Feb 2017 16:10:33 +0300 Subject: Add path_entry(), fixes for path --- butl/path.ixx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'butl/path.ixx') 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:: 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 -- cgit v1.1