Add PBD::sys::operator/ to pbd/filesystem for convenient path building
authorTim Mayberry <mojofunk@gmail.com>
Tue, 4 Sep 2007 09:01:32 +0000 (09:01 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 4 Sep 2007 09:01:32 +0000 (09:01 +0000)
git-svn-id: svn://localhost/ardour2/trunk@2412 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/pbd/pbd/filesystem.h

index 6798a59c84a9d912613d9119f31e44822075f6e6..7ccc451eaccc1554d686386ebfbbde002789256b 100644 (file)
@@ -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);