X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Fregmatch.h;fp=source%2Fstrings%2Fregmatch.h;h=6af309ea72185ea91e43706c1ef38538ced51976;hp=48f65c6df2b2409403762d0a28f067c8c297b07b;hb=9990be018b49e5aae27218e1b8c6aefdb63b38a7;hpb=8e1db641bb244980bc96ee9da4ba2f0dee8274ad diff --git a/source/strings/regmatch.h b/source/strings/regmatch.h index 48f65c6..6af309e 100644 --- a/source/strings/regmatch.h +++ b/source/strings/regmatch.h @@ -32,7 +32,7 @@ public: size_type length; //< Length of the match (end-begin) std::string str; //< The part of the string that matched - operator bool() const { return match; } + explicit operator bool() const { return match; } }; private: @@ -65,7 +65,7 @@ public: /** Shorthand for the group() function. */ const Group &operator[](unsigned i) const { return group(i); } - operator bool() const { return !empty(); } + explicit operator bool() const { return !empty(); } }; } // namespace Msp