Namespaces
Variants
Views
Actions

Talk:cpp/regex

From cppreference.com
< Talk:cpp
Revision as of 03:18, 13 January 2014 by P12 (Talk | contribs)

Can you mention how you built and tested your example code?

I have cut and pasted the example into an IDE and can't build it with the latest g++. I can build it with clang 3.3 but the example doesn't work.Arbalest 17:50, 2 September 2013 (PDT)

GCC does not (yet) implement any of the standard regex functionality. See here. --P12 19:38, 2 September 2013 (PDT)
Was the example code tested? If so, how was it built?Arbalest 20:18, 2 September 2013 (PDT)
I didn't write that example, but it compiles and runs just as described for me using clang++ with libc++ on Linux. --Cubbi 23:30, 2 September 2013 (PDT)
Yeah, I think I added that one, and I've been mostly relying on clang-3.3 with libc++ on a mac. --Nate 07:37, 3 September 2013 (PDT)
Example code fails to compile with any of the available compilers using "run this code" button as of Jan 9 2014
That is correct; we don't currently have an implementation available for online compilation with sufficient C++11 support. It can be compiled and executed this way: http://coliru.stacked-crooked.com/a/6f09afcbd980dbaa (P12 would probably be the person to ask to use that command line when clang is selected) --Cubbi (talk) 07:28, 9 January 2014 (PST)
I'm working on that. --P12 16:34, 9 January 2014 (PST)
I think this is fixed now. --P12 03:18, 13 January 2014 (PST)