From 3ab2746e9f0626d691d8946d50ed399d45e9f770 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 11 Jun 2007 06:38:53 +0000 Subject: [PATCH] Add operator bool() to RegMatch::Group --- source/regmatch.h | 1 + 1 file changed, 1 insertion(+) 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; -- 2.45.2