Skip to content

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

Open
@agetu

Description

@agetu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions