<i>&gt;nested functions</i><p>They are not supported. In C++11 you can use lambdas:<p><pre><code>  auto const local_func = [&amp;](...) {
    ...
  };
</code></pre>
And then later:<p><pre><code>  local_func(...);</code></pre>