X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fpath.h;h=d515d7817031c1df3f98d0ad459c92a597b0dbcc;hp=6aa16f6d08191a9d7d4000f8f9be65ee4d6217a6;hb=5eb788bd9a41895585d4bb366a683437ddf63ad5;hpb=8552e6a4e4fbc454e08c582d1dbcd55ab58a3c37 diff --git a/source/fs/path.h b/source/fs/path.h index 6aa16f6..d515d78 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -29,8 +29,8 @@ public: friend class Path; private: - const Path &path; - std::string::size_type start,end; + const Path *path; + std::string::size_type start, end; Iterator(const Path &); public: @@ -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