Overloading post-increment operator
<pre><code>MyClass MyClass::operator++(int) {
    return ++(*this);
}
</code></pre>

<p>That's the code I have written. I works correctly, but all tutorials say that I have to create a temporary object and return it:</p>

<pre><code>MyClass MyClass::operator++(int) {
    MyClass tmp = *this;
    ++(*this);
    return tmp;
}
</code></pre>

<p>Please tell me which way is the best?</p>
