c ++按引用传递:错误:没有匹配的调用函数

Mr_*_*s_D 1 c++ string compiler-errors parameter-passing

我有这个代码:

bool Port::add_app_from_wlist(App* a){
 stringstream namesurn;
 string name, surname;
 namesurn << a->get_name();
 namesurn >> name >> surname;
 return add_application(a->get_id(),name,surname,a->arrived_at_port_by(),a->arrived_by(),a->is_luxury_class());
}
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

air_classes.cpp:153:错误:没有匹配函数来调用`Port :: add_application(int,std :: string&,std :: string&,time_t,time_t,bool)'

air_classes.cpp:98:注意:候选者是:bool Port :: add_application(int,std :: string,std :: string,std :: string,time_t,time_t,bool)

我不明白这个字符串来自哪里错误 - 也不知道如何修改它 - 请帮忙.

Vla*_*lad 7

该方法add_application接受3个字符串,但在调用中只指定其中的2个.