Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C+中的Regexp运行时错误+;11_Regex_C++11 - Fatal编程技术网

C+中的Regexp运行时错误+;11

C+中的Regexp运行时错误+;11,regex,c++11,Regex,C++11,这个正则表达式给出了一个运行时错误 #include <regex> int main( int argc, const char* argv[] ) { std::regex test("[^*]"); } 可能是因为有些东西在ecmascript c++11中不起作用。 我尝试了一些变体(基本、扩展、grep、egrep),但没有成功 如何在C++11中使用正则表达式? (Boost不是一个选项)。显然,C++11中的的实现直到GCC4.9才完成 我们需要!我个人在方面的经验是

这个正则表达式给出了一个运行时错误

#include <regex>
int main( int argc, const char* argv[] )
{
std::regex test("[^*]");
}
可能是因为有些东西在ecmascript c++11中不起作用。 我尝试了一些变体(基本、扩展、grep、egrep),但没有成功

如何在C++11中使用正则表达式?
(Boost不是一个选项)。

显然,C++11中的
的实现直到GCC4.9才完成


我们需要!我个人在
方面的经验是,不同的标准库在语法方面略有不同。这基本上意味着实用的不可移植性。
 ./test 
terminate called after throwing an instance of 'std::regex_error'
  what():  regex_error
Aborted