C++ Getting a strange output when overloading postfix increment operator : <p>I threw everything I had into a single source file and uploaded it to <a href="https://pastebin.com/Pqn2cLPR" rel="nofollow noreferrer">pastebin</a> for easy debugging.</p>

<p>My problem is with the postfix increment operator.<br/>In my output, I get this:<br/></p>

<pre><code>Preincrement expressions:
(-11 - 2i)
(-117 + 44i)

Postincrement expressions:
(-1.07374e+08 - 1.07374e+08i)
(-1.07374e+08 - 1.07374e+08i)

After postincrement expressions:
(-1199 - 718i)
(-922077 + 1.72176e+06i)
</code></pre>

<p>When I am expecting this:<br/></p>

<pre><code>Preincrement expressions:
(-11 - 2i)
(-117 + 44i)

Postincrement expressions:
(-11 - 2i)
(-117 + 44i)

After postincrement expressions:
(-1199 - 718i)
(-922077 + 1.72176e+06i)
</code></pre>

<p>I am getting a strange output for "Preincrement expressions". During debugging I can see that the values stored in the temporary object are correct until it comes time to format and output them.<br/><br/> Any help on this would be greatly appreciated!</p>
