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

item 17 #198

Open
Ymm-sjtu opened this issue Oct 30, 2024 · 0 comments
Open

item 17 #198

Ymm-sjtu opened this issue Oct 30, 2024 · 0 comments

Comments

@Ymm-sjtu
Copy link

Ymm-sjtu commented Oct 30, 2024

At some point, analogous rules may be extended to the copy operations, because C++11 deprecates the automatic generation of copy operations for classes declaring copy operations or a destructor.
有时,类似的规则也会扩展至拷贝操作上面,C++11抛弃了已声明拷贝操作或析构函数的类的拷贝操作的自动生成。
这里的deprecates翻译为抛弃,给人一种强制不使用的感觉,与前文的“C++98用户声明析构函数不会左右编译器生成拷贝操作的意愿。C++11中情况仍然如此,但仅仅是因为限制拷贝操作生成的条件会破坏老代码。”矛盾
这里翻译成“推荐不使用”会更好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant