X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fregmatch.h;h=4280aa347d66f03430d84fd2b35df3a52f61e4ec;hb=3ab2746e9f0626d691d8946d50ed399d45e9f770;hp=f5a774e601c83c13e33df582187393cae398f29a;hpb=381c89769c0ffaa14e6a92c662323b5c45e1eba3;p=libs%2Fcore.git 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;