Boost logo

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",
"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,


Boost list run by bdawes at, gregod at, cpdaniel at, john at