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