I was trying to return value true or false depending upon the condition by using a conditional operator but I got an error. Here is my code,
bool isEmpty()
{
int listSize = Node::size();
listSize > 0 ? return (true) : return (false);
return false;
}
And here is the error,
error C2107: illegal index, indirection not allowed
Now I am stuck here. I don't get the point.Logically I think it should be correct. Please guide me about it . Thanks