Skip to content

non-static const is causing problems #27

@stewpend0us

Description

@stewpend0us

in basesocket.hpp line 29:
const uint16_t BUFFER_SIZE = 0xFFFF;

please make it:
static const uint16_t BUFFER_SIZE = 0xFFFF;

otherwise the function 'TCPSocket& TCPSocket::operator=(TCPSocket&&)' is deleted by the compiler and I can't do
mysocket = TCPSocket();

just changing that one constant to be static fixes the problem for me and works great

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