Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing move constructor for connector template #60

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion include/sockpp/connector.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class connector : public stream_socket
/**
* Creates the connector and attempts to connect to the specified
* address.
* @param addr The remote server address.
* @param addr The remote server address.
*/
connector(const sock_address& addr) { connect(addr); }
/**
Expand Down Expand Up @@ -145,6 +145,12 @@ class connector_tmpl : public connector
* @param addr The remote server address.
*/
connector_tmpl(const addr_t& addr) : base(addr) {}
/**
* Move constructor.
* Creates a connector by moving the other connector to this one.
* @param conn Another connector.
*/
connector_tmpl(connector_tmpl&& rhs) : base(std::move(rhs)) {}
/**
* Move assignment.
* @param rhs The other connector to move into this one.
Expand Down