-/* $Id$
-
-This file is part of libmspstrings
-Copyright © 2007 Mikko Rasa
-Distributed under the LGPL
-*/
-
-#include <msp/core/except.h>
+#include <stdexcept>
#include "regmatch.h"
using namespace std;
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];
}