我正在尝试创建一个简单的函数来进行简单的测试并返回真或假。
myfunct = (_3 < someArray[i]);
当我这样做时,我得到这个错误:
error: no match for 'operator<' in '<unnamed>::_1 < depths[i]'
我希望得到与此等效的东西
bool myFunct(unsigned int a, unsigned int b, unsigned int c, unsigned int d)
{
return c < 22; // Suppose 22 was in someArray[i]
}