Доброго времени суток!
Тащемта код:
for (auto it=root_funcs.begin(); it!=root_funcs.end(); ++it)
{
//std::cout << it->first << '\n';
if(!strcmp(it->first,f->name.c_str()))
{
std::cout<<"Function must be found!"<<std::endl;
}
}
auto it=root_funcs.find(f->name.c_str());
if(it!=root_funcs.end())
{
std::cout<<it->first<<std::endl;
}
else
{
std::cout<<"Function is not found!"<<std::endl;
}
А вот его вывод:
Function must be found!
Function is not found!
ЧЯДНТ??