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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

C++ Core Guidelines Lifetime Checker Status [June '18]

1 点作者 seeekr大约 6 年前

1 comment

seeekr大约 6 年前
A notable and reasonably thorough investigation into the state of the C++ lifetime checker as of June 2018.<p>What I took away from this is the impression that the work on the lifetime checker is incremental and the tool was able to deal with a certain complexity of cases, but beyond that backed off and produced either false positives or negatives.<p>Roughly speaking, the author found edges of the checker implementation around code &quot;hiding&quot; from the checker in functions (ie. missing inlining capabilities), or const&amp; in combination with either typedefs or vector operations, temporary value lifetime extension rules, and some others.<p>It seemed that in general the lifetime checker was already working in terms of the fundamentals of the C++ language, but it needed more work in order to be able to &quot;see&quot; through all intermediary function calls and as such also be able to handle cases involving standard library types, which any user of the tool would expect to be understood perfectly.