Skip to content

unique_ptr使用问题 #690

@cellphonef

Description

@cellphonef

如TcpServer中的acceptor_成员和TcpConneciton中的socket_以及channel_成员,都使用unique_ptr来管理,个人觉得可以直接使用对象即可,想问muduo使用unique_ptr来管理是出于什么原因?减少头文件的依赖吗?

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