diff options
Diffstat (limited to 'build/path.ixx')
-rw-r--r-- | build/path.ixx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build/path.ixx b/build/path.ixx index 60d3bc3..ef1232b 100644 --- a/build/path.ixx +++ b/build/path.ixx @@ -59,6 +59,19 @@ namespace build template <typename C> inline basic_path<C> basic_path<C>:: + root_directory () const + { + return absolute () +#ifdef _WIN32 + ? path (path_, 2) +#else + ? path ("/") +#endif + : path (); + } + + template <typename C> + inline basic_path<C> basic_path<C>:: base () const { size_type p (traits::find_extension (path_)); |