From 3af115d488289abfaec2635029f5efe3978d77f4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Mar 2010 12:58:32 +0200 Subject: Add comparison operators for fs::path --- cutl/fs/path.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cutl/fs/path.hxx') 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 -- cgit v1.1