TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 AsmMAn大约 11 年前

1 comment

tlb大约 11 年前
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.