]> git.tdb.fi Git - libs/core.git/blobdiff - source/regmatch.h
Add operator bool() to RegMatch::Group
[libs/core.git] / 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;