title: Why can not pass void to function with no parameters?
body: <p>Why does compiler not treat <code>return_nothing(return_nothing())</code> as <code>return_nothing(); return_nothing();</code> because the return type of <code>return_nothing()</code> is <code>void</code>?</p>
  
  <pre><code>void return_nothing() {}
  
  int main()
  {    
      return_nothing(return_nothing()); // compile error
  }
  </code></pre>
  
  <p>Live: <a href="http://melpon.org/wandbox/permlink/Ybd8xOnqAYWa9hKG" rel="nofollow">Wanbox</a></p>