|
Boost : |
From: Ian Mahuron (ian_at_[hidden])
Date: 2002-09-26 10:39:21
Hello all,
I've tried pasting the following snippet into a BCB6 form event (using
FormClick for kicks):
void __fastcall TForm1::FormClick(TObject *Sender)
{
std::string s[4] = { "0000111122223333", "0000 1111 2222 3333",
"0000-1111-2222-3333",
"000-1111-2222-3333", };
static const boost::regex e("(\\d{4}[- ]){3}\\d{4}");
boost::regex_match(s[0], e);
}
Code compiles/links fine. My problem is that regex_match() throws an
access viloation when called. Any ideas?
Thank you,
Ian
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk