Boost logo

Boost :

From: John Maddock (jm_at_[hidden])
Date: 2002-09-28 05:20:55


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

It will be fixed in the next release, for now you can either:

turn off the -Ve and -Vx options in the IDE, or turn on those options in the
makefile and rebuild the libraries (in other words it's binary compatibility
problem).

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk