Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[内容有误] 关于值类别的叙述有误 #4480

Open
1 task
zclllyybb opened this issue Dec 2, 2022 · 4 comments
Open
1 task

[内容有误] 关于值类别的叙述有误 #4480

zclllyybb opened this issue Dec 2, 2022 · 4 comments
Labels
Content Bug / 页面内容有误 Something isn't working help wanted / 需要帮助 Extra attention is needed

Comments

@zclllyybb
Copy link

请选择:

  • 我正在着手修复这个问题

我正在访问这个页面

https://oi-wiki.org/lang/value-category/#c17-%E5%B8%A6%E6%9D%A5%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96

我发现页面有这样的问题

这一部分的叙述是完全错误的。
首先,该部分将NRVO称为了RVO,并称其是标准的硬性规定。事实上,只有RVO是硬性规定。
而之后对于临时量实质化的叙述又是完全不知所云的。

@zclllyybb zclllyybb added Content Bug / 页面内容有误 Something isn't working help wanted / 需要帮助 Extra attention is needed labels Dec 2, 2022
@Menci
Copy link
Member

Menci commented Dec 2, 2022

@zclllyybb 我觉得不需要这么吹毛求疵,算法竞赛中不需要 portable 的代码,只需要了解用到的编译器(通常是 gcc)的特性和行为就可以了,更何况 nrvo 也是常用的编译器全部实现了的

@zclllyybb

This comment was marked as off-topic.

@Enter-tainer
Copy link
Member

@zclllyybb 看起来好像是代码里面给的例子不太好,如果方便的话,可以开个pr改成匿名变量的形式吗?(也就是说,举一个rvo的例子

@inclyc
Copy link
Member

inclyc commented Dec 2, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content Bug / 页面内容有误 Something isn't working help wanted / 需要帮助 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants