aboutsummaryrefslogtreecommitdiff
path: root/cutl/fs/path.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-05-30 19:57:03 -0400
committerBoris Kolpackov <boris@codesynthesis.com>2013-05-30 19:57:03 -0400
commit7777dce64be826d070b17312d7e82b6ce8eb21de (patch)
tree97f30f269497a303328414856db8be5455d136b5 /cutl/fs/path.hxx
parent3a1b35c227d8b51d1bb488db511f82c666a38ea0 (diff)
Add posix_string() function to fs::basic_path class template
Diffstat (limited to 'cutl/fs/path.hxx')
-rw-r--r--cutl/fs/path.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/cutl/fs/path.hxx b/cutl/fs/path.hxx
index d96644e..cbe71a6 100644
--- a/cutl/fs/path.hxx
+++ b/cutl/fs/path.hxx
@@ -80,7 +80,6 @@ namespace cutl
}
};
-
template <typename C>
class invalid_basic_path;
@@ -275,6 +274,15 @@ namespace cutl
return path_;
}
+ // If possible, return a POSIX representation of the path. For example,
+ // for a Windows path in the form foo\bar this function will return
+ // foo/bar. If it is not possible to create a POSIX representation for
+ // this path (e.g., c:\foo), this function will throw the invalid_path
+ // exception.
+ //
+ string_type
+ posix_string () const;
+
private:
void
init ();