Skip to content

Commit

Permalink
make node and tracker_node explicitly non-movable, since the node con…
Browse files Browse the repository at this point in the history
…tains a non-movable std::mutex
  • Loading branch information
arvidn committed Jul 30, 2019
1 parent a4b2f63 commit c5d0ea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/libtorrent/kademlia/dht_tracker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ namespace libtorrent { namespace dht {
, get_foreign_node_t get_foreign_node
, dht_storage_interface& storage);
tracker_node(tracker_node const&) = delete;
tracker_node(tracker_node&&) = default;
tracker_node(tracker_node&&) = delete;

node dht;
deadline_timer connection_timer;
Expand Down
4 changes: 2 additions & 2 deletions include/libtorrent/kademlia/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ class TORRENT_EXTRA_EXPORT node

node(node const&) = delete;
node& operator=(node const&) = delete;
node(node&&) = default;
node& operator=(node&&) = default;
node(node&&) = delete;
node& operator=(node&&) = delete;

void update_node_id();

Expand Down

0 comments on commit c5d0ea6

Please sign in to comment.