X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpath.h;h=6662a8c20a875856c347d6488747f9c515ecdb5f;hb=c8c033803937c2f89f6117c903465303d5ae8ea2;hp=9e1e3747fed37c0b6687ee48c0925071bbccd6ea;hpb=4cc2d6ced17e8cbe1ae3251069131d22a292b857;p=libs%2Fcore.git diff --git a/source/path.h b/source/path.h index 9e1e374..6662a8c 100644 --- a/source/path.h +++ b/source/path.h @@ -48,7 +48,7 @@ public: unsigned size() const; bool empty() const { return path.empty(); } bool is_absolute() const; - Path subpath(unsigned, unsigned =(unsigned)-1) const; + Path subpath(unsigned, unsigned =static_cast(-1)) const; Path operator/(const Path &p) const { Path a=*this; a/=p; return a; } Path &operator/=(const Path &); std::string operator[](int) const; @@ -59,6 +59,7 @@ private: std::string path; void init(const std::string &); + void add_component(const std::string &); }; inline std::ostream &operator<<(std::ostream &o, const Path &p) { o<