X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fpath.h;h=6662a8c20a875856c347d6488747f9c515ecdb5f;hp=0f333018fc2bdbb1de6d7f89182f6ded2ea8a606;hb=05ea50ffd15fa74ab1059df2c63442fdf83dec96;hpb=174debf33b2001b3244c007825d0a5539566bd8c diff --git a/source/path.h b/source/path.h index 0f33301..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;