TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Understanding a new C++ feature. How the cycle eventually is.

2 pointsby AsmMAnabout 11 years ago

1 comment

tlbabout 11 years ago
I just went through this cycle. I updated a 2005-era codebase to use auto to declare most iterators:<p><pre><code> for (auto it = foo.begin(); ... </code></pre> That was pleasant and easy. Then I got all excited about std::atomic and tried using that in place of my own portable implementation, but it didn&#x27;t work on OSX so I had to roll back.