Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/129.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++ 尝试访问单元化boost::match_result<&燃气轮机;班_C++_Boost - Fatal编程技术网

C++ 尝试访问单元化boost::match_result<&燃气轮机;班

C++ 尝试访问单元化boost::match_result<&燃气轮机;班,c++,boost,C++,Boost,模式匹配任何浮点数字,且具有post条件 如果函数返回false,则对参数m的影响未定义,否则对参数m的影响在表中给出: 因此,您需要做的是从regex_search捕获返回,以确保它确实找到了某些内容,或者可以将其用作if语句的条件,如 if(boost::regex_search(line, match, expr)){ if(match["value"].matched){ cout << match["value"]<<endl;

模式匹配任何
浮点
数字,且具有post条件

如果函数返回false,则对参数m的影响未定义,否则对参数m的影响在表中给出:

因此,您需要做的是从
regex_search
捕获返回,以确保它确实找到了某些内容,或者可以将其用作if语句的条件,如

if(boost::regex_search(line, match, expr)){
    if(match["value"].matched){
        cout << match["value"]<<endl;
    }
}
if(boost::regex_搜索(行、匹配、表达式)){
如果(匹配[“值”]。匹配){
cout的后遗症为

如果函数返回false,则对参数m的影响未定义,否则对参数m的影响在表中给出:

因此,您需要做的是从
regex_search
捕获返回,以确保它确实找到了某些内容,或者可以将其用作if语句的条件,如

if(boost::regex_search(line, match, expr)){
    if(match["value"].matched){
        cout << match["value"]<<endl;
    }
}
if(boost::regex_搜索(行、匹配、表达式)){
如果(匹配[“值”]。匹配){
cout的后遗症为

如果函数返回false,则对参数m的影响未定义,否则对参数m的影响在表中给出:

因此,您需要做的是从
regex_search
捕获返回,以确保它确实找到了某些内容,或者可以将其用作if语句的条件,如

if(boost::regex_search(line, match, expr)){
    if(match["value"].matched){
        cout << match["value"]<<endl;
    }
}
if(boost::regex_搜索(行、匹配、表达式)){
如果(匹配[“值”]。匹配){
cout的后遗症为

如果函数返回false,则对参数m的影响未定义,否则对参数m的影响在表中给出:

因此,您需要做的是从
regex_search
捕获返回,以确保它确实找到了某些内容,或者可以将其用作if语句的条件,如

if(boost::regex_search(line, match, expr)){
    if(match["value"].matched){
        cout << match["value"]<<endl;
    }
}
if(boost::regex_搜索(行、匹配、表达式)){
如果(匹配[“值”]。匹配){
库特