]> git.tdb.fi Git - libs/core.git/commitdiff
Add operator bool() to RegMatch::Group
authorMikko Rasa <tdb@tdb.fi>
Mon, 11 Jun 2007 06:38:53 +0000 (06:38 +0000)
committerMikko Rasa <tdb@tdb.fi>
Mon, 11 Jun 2007 06:38:53 +0000 (06:38 +0000)
source/regmatch.h

index f5a774e601c83c13e33df582187393cae398f29a..4280aa347d66f03430d84fd2b35df3a52f61e4ec 100644 (file)
@@ -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<Group> GroupArray;