title: Returning value in conditional operator
body: <p>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,</p>
  
  <pre><code>bool isEmpty()
  {
      int listSize = Node::size();
      listSize &gt; 0 ? return (true) : return (false);
      return false;
  }
  </code></pre>
  
  <p>And here is the error,</p>
  
  <pre><code>error C2107: illegal index, indirection not allowed
  </code></pre>
  
  <p>Now I am stuck here. I don't get the point.Logically I think it should be correct. Please guide me about it . Thanks</p>