Thanks, but won't work well in the real code.

I have multiple instantiations of the same class, and don't know the pattern 
until well after the instantiation. Pattern may change after instantiation.

It doesn't take much to make it work. The std::tr1::regex::flag_type flags = 
std::tr1::regex::extended is necessary. ECMA (the default) works.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Jack J. Woehr
Sent: Sunday, April 8, 2018 3:18 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Any C++ regex template class gotchas?

On 4/8/2018 1:04 PM, Charles Mills wrote:
> It do. The error message is ABEND=S0C4 U0000 REASON=00000004.

Try initializing the regex in the declaration instead of doing it in
main() via pointer-to-reference;

-- 
Jack J. Woehr     # Science is more than a body of knowledge. It's a way of
www.well.com/~jax # thinking, a way of skeptically interrogating the universe 
www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to