aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-03-30 12:58:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-03-30 12:58:32 +0200
commit3af115d488289abfaec2635029f5efe3978d77f4 (patch)
tree54cc62d89e81a5f533331de821af2a06e0b40767
parent8b0ecefe8a14c1d67eb8ceb1e0597dc0cbb50494 (diff)
Add comparison operators for fs::path
-rw-r--r--cutl/fs/path.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/cutl/fs/path.hxx b/cutl/fs/path.hxx
index 2b1743a..aee91b9 100644
--- a/cutl/fs/path.hxx
+++ b/cutl/fs/path.hxx
@@ -91,6 +91,18 @@ namespace cutl
basic_path
operator/ (basic_path const&);
+ bool
+ operator== (basic_path const& x) const
+ {
+ return path_ == x.path_;
+ }
+
+ bool
+ operator!= (basic_path const& x) const
+ {
+ return !(*this == x);
+ }
+
public:
string_type
string () const