summaryrefslogtreecommitdiff
path: root/tools/common/path.h
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2018-12-22 13:04:36 +0800
committerJohn Hodge <tpg@ucc.asn.au>2018-12-22 13:04:36 +0800
commitc16b84b5784865bdb37bbb4b26dc22cec588ffd8 (patch)
tree65571bf30cceddc3dbe71c6cb7ac9de6923c8608 /tools/common/path.h
parentf893005e2b0a207826d56782afcd456754adb643 (diff)
downloadmrust-c16b84b5784865bdb37bbb4b26dc22cec588ffd8.tar.gz
Minicargo - Fix #98 by moving chdir into `spawn_process` (and protect it with a lock)
Diffstat (limited to 'tools/common/path.h')
-rw-r--r--tools/common/path.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/common/path.h b/tools/common/path.h
index eae4951f..1ad6f506 100644
--- a/tools/common/path.h
+++ b/tools/common/path.h
@@ -38,6 +38,13 @@ public:
return m_str != "";
}
+ bool operator==(const path& p) const {
+ return m_str == p.m_str;
+ }
+ bool operator!=(const path& p) const {
+ return m_str != p.m_str;
+ }
+
path& operator/=(const path& p)
{
if(!p.is_valid())