From: Mikko Rasa Date: Mon, 11 Jun 2007 06:38:53 +0000 (+0000) Subject: Add operator bool() to RegMatch::Group X-Git-Tag: strings-1.0~16 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=3ab2746e9f0626d691d8946d50ed399d45e9f770;p=libs%2Fcore.git Add operator bool() to RegMatch::Group --- diff --git a/source/regmatch.h b/source/regmatch.h index f5a774e..4280aa3 100644 --- a/source/regmatch.h +++ b/source/regmatch.h @@ -32,6 +32,7 @@ public: std::string str; //< The part of the string that matched Group(): match(false) { } + operator bool() const { return match; } }; typedef std::vector GroupArray;