To clarify, by "works" you mean does NOT ABEND?

Charles


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

Works ok for me. The code is sound so I would open a PMR.


On 9/04/2018 2:09 AM, Charles Mills wrote:
> #include <stdio.h>
>
> #define __IBMCPP_TR1__ 1
> #include <regex>
>
> class myRegex
> {
> public:
>      std::tr1::regex regexObject;
> };
>
> int main(int argc, char* argv[])
> {
>      printf("RegEx test 4/6/2018\n");
>      std::tr1::regex::flag_type flags = std::tr1::regex::extended;     //
> necessary for error
>      myRegex *myRegex_p = new myRegex;
>      myRegex_p->regexObject.assign("foo", flags);
>      delete myRegex_p;
>      return 0;
> }

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