From b547a2cef066dc6827ba75ce0a4fc7760b6b1efe Mon Sep 17 00:00:00 2001 From: arvidn Date: Mon, 15 May 2017 17:49:03 -0400 Subject: [PATCH] fix deprecation warnings --- include/libtorrent/torrent_handle.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/libtorrent/torrent_handle.hpp b/include/libtorrent/torrent_handle.hpp index 4b8c7c3e5..f9cff49fc 100644 --- a/include/libtorrent/torrent_handle.hpp +++ b/include/libtorrent/torrent_handle.hpp @@ -151,6 +151,15 @@ namespace libtorrent { namespace aux { // or outstanding writes struct TORRENT_EXPORT partial_piece_info { +#ifndef TORRENT_NO_DEPRECATE +#include "libtorrent/aux_/disable_warnings_push.hpp" + partial_piece_info() = default; + partial_piece_info(partial_piece_info&&) = default; + partial_piece_info(partial_piece_info const&) = default; + partial_piece_info& operator=(partial_piece_info const&) = default; + partial_piece_info& operator=(partial_piece_info&&) = default; +#include "libtorrent/aux_/disable_warnings_pop.hpp" +#endif // the index of the piece in question. ``blocks_in_piece`` is the number // of blocks in this particular piece. This number will be the same for // most pieces, but