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/?p=libs%2Fcore.git;a=commitdiff_plain;h=3ab2746e9f0626d691d8946d50ed399d45e9f770;hp=220e73f799b5c5fb49d4c6bd4e1ae6b2fbd8388b 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;