aboutsummaryrefslogtreecommitdiff
path: root/build/path.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-04 16:33:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-04 16:33:51 +0200
commit7eed858cac7e8ff78626bdc5d63a7f36ca8f8010 (patch)
tree225dd25e354c4f6234dbf2c02608ec6545dcd688 /build/path.ixx
parentc76fe316122969986103d243706dc7fa7ab6ddc1 (diff)
Move roots and bases to appropriate scopes
Diffstat (limited to 'build/path.ixx')
-rw-r--r--build/path.ixx13
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_));