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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Modernize your C++ code

72 点作者 StylifyYourBlog超过 10 年前

4 条评论

asveikau超过 10 年前
&gt; Pass-By-Value: Detect const-ref parameters that would benefit from using the pass-by-value idiom.<p>I don&#x27;t get why to make this change and the justification (after following 2 links deep: Want Speed? Pass by Value) is a 404.<p>Move constructors are great and it&#x27;s awesome that a bunch of what used to be copy-constructor overuse in C++03 can now be done without deep copies in C++11. But I don&#x27;t understand why explicitly move from something that is explicit and guaranteed to be cheap (pass by reference) to something that might be cheap if everything has reasonable move-ctors or (if not all ducks are in a row) might simply degrade to incurring the C++03-style over-copies. Does not seem like a strict improvement to me. Seems instead like blindly applying this to existing code will slow it down in some cases, possibly dramatically.
评论 #8978467 未加载
评论 #8978479 未加载
评论 #8978920 未加载
评论 #8978951 未加载
fsloth超过 10 年前
Very nice to see improvements to the tool landscape for C++. I&#x27;m sure the toolset that will emerge will be very nice. I just don&#x27;t see any situation where I would like to subject any production codebase to this particular transform just for the fun of it. Cool CS toy, though.
huhtenberg超过 10 年前
I see no tangible reason to do this. I mean, all of this is <i>nice</i>, but it&#x27;s just messing with the working codebase for the sake of messing with it.
评论 #8977999 未加载
评论 #8978043 未加载
评论 #8977755 未加载
jbHawk超过 10 年前
I&#x27;m really impressed with this tooling. Effectively Resharper for C++. There&#x27;s a huge market opportunity for C++ tooling.
评论 #8978576 未加载
评论 #8977812 未加载