Skip to content

String类的移动构造函数 #13

@kkndme-wx

Description

@kkndme-wx

String::String(const String &&other)    // 得分点:输入参数为const型
{
m_data = other.data;
other.data = nullptr;
}
大佬大佬,这里other是不是有误,应该不能是const类型吧

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions