As of this writing (but perhaps not for very much longer!) the four mainstream compilers on Godbolt Compiler Explorer give four different answers for this simple C++ program:
<p>Wowza! It’s been a while since Part 2, and so much has happened. I’m glad to be back, and I have some “unfinished business” I need to wrap up. Namely: Finish this blog series.</p>
- twitter.com/MacSlow
- OpenSource and computer-graphics geek. I like/ride motorcycles too! Ex-Canonical/Ubuntu, CTO & co-founder of spot-on, currently at Heindenhain Numeric B.V.
Rob Pike, one of the creators of the Go language, stated that he expected the language to be adopted by C++ programmers, a prediction that hasn't been realised. Recently however at the HFT firm where I work, the success of a team's move from Python to Go for some pieces of non-speed-critical infrastructure led to…