Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 471d5c0

Browse files
committed
Fix Host compiler error
Shouldn't use move when creating unique_ptr<steady_timer> since it prevents copy elision
1 parent c254be9 commit 471d5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libp2p/Host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ void Host::registerCapability(
489489
return;
490490
}
491491
m_capabilities[{_name, _version}] =
492-
make_pair(_cap, move(unique_ptr<ba::steady_timer>{new ba::steady_timer{m_ioService}}));
492+
make_pair(_cap, unique_ptr<ba::steady_timer>{new ba::steady_timer{m_ioService}});
493493
}
494494

495495
void Host::addPeer(NodeSpec const& _s, PeerType _t)

0 commit comments

Comments
 (0)