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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Self-inlining anonymous closures in C++

52 点作者 adg001超过 14 年前

3 条评论

omnigoat超过 14 年前
Sorry, I can't see how this is an improvement over Boost::Phoenix:<p><a href="http://www.boost.org/doc/libs/1_44_0/libs/spirit/phoenix/doc/html/phoenix/introduction.html" rel="nofollow">http://www.boost.org/doc/libs/1_44_0/libs/spirit/phoenix/doc...</a>
评论 #1724187 未加载
评论 #1722669 未加载
shin_lao超过 14 年前
A lot of people will read this and think "damn C++ is such an ugly language, it should never allow the programmer to do this!".<p>The reality is that that kind of technique allows to produce extremely fast code because the compiler has got so much "certain" information at compile time that it can optimize very aggressively.<p>It's more powerful than vanilla C macros because it works with the compiler, not the pre-processor.
评论 #1723199 未加载
jongraehl超过 14 年前
$ in C++ identifiers is a nonstandard extension that gcc allows on some platforms - cool (and not portable).
评论 #1723215 未加载