]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/path.h
Make FS::Path::Iterator assignable
[libs/core.git] / source / fs / path.h
index c3c599a9e03d0a0dae8b9e47187086b49b407d1a..d515d7817031c1df3f98d0ad459c92a597b0dbcc 100644 (file)
@@ -29,7 +29,7 @@ public:
                friend class Path;
 
        private:
-               const Path &path;
+               const Path *path;
                std::string::size_type start, end;
 
                Iterator(const Path &);
@@ -80,6 +80,12 @@ public:
        std::string operator[](int) const;
 
        bool operator==(const Path &) const;
+       bool operator<(const Path &) const;
+       bool operator>(const Path &) const;
+       bool operator<=(const Path &other) const { return !(*this>other); }
+       bool operator>=(const Path &other) const { return !(*this<other); }
+       bool operator!=(const Path &other) const { return !(*this==other); }
+
        Iterator begin() const;
        Iterator end() const;
 };