diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-30 12:58:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-30 12:58:32 +0200 |
commit | 3af115d488289abfaec2635029f5efe3978d77f4 (patch) | |
tree | 54cc62d89e81a5f533331de821af2a06e0b40767 /cutl/fs | |
parent | 8b0ecefe8a14c1d67eb8ceb1e0597dc0cbb50494 (diff) |
Add comparison operators for fs::path
Diffstat (limited to 'cutl/fs')
-rw-r--r-- | cutl/fs/path.hxx | 12 |
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 |