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

定义了析构函数,就必须删除移动构造函数、移动赋值函数、拷贝构造函数、拷贝赋值函数? #83

Open
agetu opened this issue Feb 8, 2025 · 0 comments

Comments

@agetu
Copy link

agetu commented Feb 8, 2025

深入理解析构函数与生命周期中
定义了析构函数,就必须删除移动构造函数、移动赋值函数、拷贝构造函数、拷贝赋值函数
根据三五法则,不应该是同时定义剩下的拷贝构造函数、拷贝赋值函数或者移动构造函数、移动赋值函数、拷贝构造函数、拷贝赋值函数吗?为什么是删除呢

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