Skip to content
Snippets Groups Projects
Verified Commit b044da34 authored by Benny Baumann's avatar Benny Baumann
Browse files

fix: Be explicit about forwarded argument type

parent 4614a1f2
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
namespace rmrf::net {
async_server_socket::async_server_socket(auto_fd&& socket_fd) :
socket(std::forward(socket_fd)), on_accept{}, on_error{}, io{} {
socket(std::forward<auto_fd>(socket_fd)), on_accept{}, on_error{}, io{} {
// This constructor got a constructed socket as an argument
// and forwards it to libev
io.set<async_server_socket, &async_server_socket::cb_ev>(this);
......
......@@ -19,7 +19,7 @@ namespace rmrf::net {
// Nothing special to do here ...
};
iorecord(iorecord&& other) :
offset(other.offset), data(std::forward(other.data)) {
offset(other.offset), data(std::forward<iorecord>(other.data)) {
// Nothing special to do here ...
};
public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment