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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Self-inlining anonymous functions in C++

48 点作者 adg001大约 15 年前

4 条评论

barrkel大约 15 年前
This is truly revolting, offensive code. Unless you like C++ template metaprogramming, I recommend you don't look.<p>:)
评论 #1298867 未加载
jheriko大约 15 年前
This is pretty cool - the final compiled code looks pretty tidy considering the hoops being jumped through. :)
slug大约 15 年前
If you are interested in this subject, you might find the following pertinent:<p><a href="http://www.boost.org/doc/libs/1_42_0/doc/html/lambda.html" rel="nofollow">http://www.boost.org/doc/libs/1_42_0/doc/html/lambda.html</a><p>and as someone posted here before:<p><a href="http://gcc.gnu.org/projects/cxx0x.html" rel="nofollow">http://gcc.gnu.org/projects/cxx0x.html</a><p>There's also an interview with a "brief" summary from Scott Meyers at <a href="http://www.se-radio.net/podcast/2010-04/episode-159-c0x-scott-meyers" rel="nofollow">http://www.se-radio.net/podcast/2010-04/episode-159-c0x-scot...</a> that mentions lambda functions.
评论 #1299140 未加载
评论 #1298831 未加载
koblas大约 15 年前
Feels like somebody doesn't trust #define's for their C++ code. While you don't get the type "safety" you get something thats a bit more natural.
评论 #1298652 未加载