X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Fregmatch.cpp;h=4799cfbd4e536b1634ba48b5d5bf625e8da06eb6;hp=61bed84d459f01f4343f75362a5b488ec1bd0334;hb=9955efca718d8be72b63c7c2182ca59e7b9d0935;hpb=967785734be5c3fc6f75da122c2d93ebbb338271 diff --git a/source/strings/regmatch.cpp b/source/strings/regmatch.cpp index 61bed84..4799cfb 100644 --- a/source/strings/regmatch.cpp +++ b/source/strings/regmatch.cpp @@ -1,4 +1,4 @@ -#include +#include #include "regmatch.h" using namespace std; @@ -19,7 +19,7 @@ RegMatch::RegMatch(const string &str, const GroupArray &g): const RegMatch::Group &RegMatch::group(unsigned i) const { if(i>=groups.size()) - throw InvalidParameterValue("Group index out of range"); + throw out_of_range("RegMatch::group"); return groups[i]; }