diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 4dfc48b6c..02191623f 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -1114,8 +1114,11 @@ TORRENT_VERSION_NAMESPACE_2 { // internal save_resume_data_alert(aux::stack_allocator& alloc - , add_torrent_params params + , add_torrent_params&& params , torrent_handle const& h); + save_resume_data_alert(aux::stack_allocator& alloc + , add_torrent_params const& params + , torrent_handle const& h) = delete; TORRENT_DEFINE_ALERT_PRIO(save_resume_data_alert, 37, alert_priority_critical) diff --git a/src/alert.cpp b/src/alert.cpp index 797177899..24fff4203 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -741,7 +741,7 @@ namespace libtorrent { } save_resume_data_alert::save_resume_data_alert(aux::stack_allocator& alloc - , add_torrent_params p + , add_torrent_params&& p , torrent_handle const& h) : torrent_alert(alloc, h) , params(std::move(p))