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.

Modernize your C++ code

72 pointsby StylifyYourBlogover 10 years ago

4 comments

asveikauover 10 years ago
&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 未加载
fslothover 10 years ago
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.
huhtenbergover 10 years ago
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 未加载
jbHawkover 10 years ago
I&#x27;m really impressed with this tooling. Effectively Resharper for C++. There&#x27;s a huge market opportunity for C++ tooling.
评论 #8978576 未加载
评论 #8977812 未加载