0
請考慮以下代碼。在不同的編譯器中執行C++ std :: regex
std::regex re ("(qwe|asd|zxc)+");
std::cout << std::regex_match ("zxcqweasd", re) << std::endl;
當我使用cl
編譯程序將打印1
和0
如果我用g++
編譯器。
其中std::regex
執行錯誤?
我正在使用g++
編譯器版本4.7.2-5和cl
編譯器版本17.00.60610.1。
g ++正則表達式沒有完全實現。 http://stackoverflow.com/questions/12530406/is-gcc4-7-buggy-about-regular-expressions – clcto
謝謝,我會等'g ++ 4.9' – Victor
@clcto - 「沒有完全實現」 - 我想,在營銷談話。 「僅作爲無用的存根執行」更準確。 –