Is this C++11 regex error me or the compiler?

前端 未结 3 1178
闹比i
闹比i 2020-11-27 17:34

OK, this isn\'t the original program I had this problem in, but I duplicated it in a much smaller one. Very simple problem.

main.cpp:

#include 

        
3条回答
  •  情深已故
    2020-11-27 17:46

    Regex support improved between gcc 4.8.2 and 4.9.2. For example, the regex =[A-Z]{3} was failing for me with:

    Regex error

    After upgrading to gcc 4.9.2, it works as expected.

提交回复
热议问题