summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/filesystem.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-09-04 09:01:32 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-09-04 09:01:32 +0000
commita6e68cbb9247b0d0a86e014ffd83232e001dc5b7 (patch)
treef2c31964abda1b50ffa07b166af90126c486bc4f /libs/pbd/pbd/filesystem.h
parentd7c562937679f71132e961dccc9b470403c328d6 (diff)
Add PBD::sys::operator/ to pbd/filesystem for convenient path building
git-svn-id: svn://localhost/ardour2/trunk@2412 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/filesystem.h')
-rw-r--r--libs/pbd/pbd/filesystem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h
index 6798a59c84..7ccc451eac 100644
--- a/libs/pbd/pbd/filesystem.h
+++ b/libs/pbd/pbd/filesystem.h
@@ -115,6 +115,9 @@ public:
int system_error() const { return m_error_code; }
};
+inline path operator/ (const path& lhs, const path& rhs)
+{ return path(lhs) /= rhs; }
+
/// @return true if path at p exists
bool exists(const path & p);