Skip to content

Reduce the use of shared_ptr #132

Description

@afaure42

There are a lot of places in the code were a unique_ptr would be totally enough and even better to expresss ownership transfer.

Fore example Client and Server classes take shared_ptr to a packet to send it, a unique_ptr would express better the fact that now the packet is only accessible by the server and client and would avoid potential race conditions.

Metadata

Metadata

Assignees

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