Function returning pointer to itself?
<p>Is it possible in C++ to write a function that returns a pointer to itself?</p>

<p>If no, suggest some other solution to make the following syntax work:</p>

<pre><code>some_type f ()
{
    static int cnt = 1;
    std::cout &lt;&lt; cnt++ &lt;&lt; std::endl;
}
int main ()
{
    f()()()...(); // n calls
}
</code></pre>

<p>This must print all the numbers from 1 to <code>n</code>.</p>
