From a6e68cbb9247b0d0a86e014ffd83232e001dc5b7 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 4 Sep 2007 09:01:32 +0000 Subject: [PATCH] Add PBD::sys::operator/ to pbd/filesystem for convenient path building git-svn-id: svn://localhost/ardour2/trunk@2412 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/pbd/filesystem.h | 3 +++ 1 file changed, 3 insertions(+) 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);