0

Consider the following code.

std::regex re ("(qwe|asd|zxc)+");
std::cout << std::regex_match ("zxcqweasd", re) << std::endl;

When I use the cl compiler program prints 1 and 0 if I use the g++ compiler.

Which std::regex implementation is wrong?

I'm using g++ compiler version 4.7.2-5 and cl compiler version 17.00.60610.1.

Daniel Frey
  • 54,116
  • 13
  • 115
  • 176
Victor
  • 31
  • 3

1 Answers1

0

gcc 4.7 has not complete standard library support for c++11. Regex is the main part missing.

cl compiler is correct.

Germán Diago
  • 7,117
  • 1
  • 32
  • 56